Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SendFile() [3/3]

void System.Net.Sockets.Socket.SendFile ( string? fileName,
ReadOnlySpan< byte > preBuffer,
ReadOnlySpan< byte > postBuffer,
TransmitFileOptions flags )
inline

Definition at line 1614 of file Socket.cs.

1615 {
1617 if (!Connected)
1618 {
1619 throw new NotSupportedException(System.SR.net_notconnected);
1620 }
1622 if (System.Net.NetEventSource.Log.IsEnabled())
1623 {
1624 System.Net.NetEventSource.Info(this, $"::SendFile() SRC:{LocalEndPoint} DST:{RemoteEndPoint} fileName:{fileName}", "SendFile");
1625 }
1627 }
static readonly System.Net.NetEventSource Log
static void Info(object thisOrContextObject, FormattableString formattableString=null, [CallerMemberName] string memberName=null)
void SendFileInternal(string fileName, ReadOnlySpan< byte > preBuffer, ReadOnlySpan< byte > postBuffer, TransmitFileOptions flags)
Definition Socket.cs:4580
static string net_notconnected
Definition SR.cs:24
Definition SR.cs:7

References System.Net.Sockets.Socket.Connected, System.Net.NetEventSource.Info(), System.Net.NetEventSource.Log, System.SR.net_notconnected, System.Net.Sockets.Socket.SendFileInternal(), System.Net.Sockets.Socket.ThrowIfDisposed(), and System.Net.Sockets.Socket.ValidateBlockingMode().