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

◆ Send() [11/11]

int System.Net.Sockets.Socket.Send ( ReadOnlySpan< byte > buffer,
SocketFlags socketFlags,
out SocketError errorCode )
inline

Definition at line 1578 of file Socket.cs.

1579 {
1583 if (errorCode != 0)
1584 {
1587 if (System.Net.NetEventSource.Log.IsEnabled())
1588 {
1589 System.Net.NetEventSource.Error(this, new SocketException((int)errorCode), "Send");
1590 }
1591 return 0;
1592 }
1593 if (SocketsTelemetry.Log.IsEnabled())
1594 {
1595 SocketsTelemetry.Log.BytesSent(bytesTransferred);
1596 if (SocketType == SocketType.Dgram)
1597 {
1598 SocketsTelemetry.Log.DatagramSent();
1599 }
1600 }
1601 return bytesTransferred;
1602 }
static readonly System.Net.NetEventSource Log
static void Error(object thisOrContextObject, FormattableString formattableString, [CallerMemberName] string memberName=null)
void UpdateSendSocketErrorForDisposed(ref SocketError socketError)
Definition Socket.cs:3798
SafeSocketHandle _handle
Definition Socket.cs:533
void UpdateStatusAfterSocketError(SocketException socketException)
Definition Socket.cs:3726

References System.Net.Sockets.Socket._handle, System.buffer, System.Net.NetEventSource.Error(), System.Net.NetEventSource.Log, System.Net.Sockets.SocketsTelemetry.Log, System.Net.Sockets.SocketPal.Send(), System.Net.Sockets.Socket.ThrowIfDisposed(), System.Net.Sockets.Socket.UpdateSendSocketErrorForDisposed(), System.Net.Sockets.Socket.UpdateStatusAfterSocketError(), and System.Net.Sockets.Socket.ValidateBlockingMode().