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

◆ SetLingerOption()

void System.Net.Sockets.Socket.SetLingerOption ( LingerOption lref)
inlineprivate

Definition at line 3534 of file Socket.cs.

3535 {
3536 SocketError socketError = SocketPal.SetLingerOption(_handle, lref);
3537 if (System.Net.NetEventSource.Log.IsEnabled())
3538 {
3539 System.Net.NetEventSource.Info(this, $"SetLingerOption returns errorCode:{socketError}", "SetLingerOption");
3540 }
3541 if (socketError != 0)
3542 {
3544 }
3545 }
static readonly System.Net.NetEventSource Log
static void Info(object thisOrContextObject, FormattableString formattableString=null, [CallerMemberName] string memberName=null)
SafeSocketHandle _handle
Definition Socket.cs:533
void UpdateStatusAfterSocketErrorAndThrowException(SocketError error, [CallerMemberName] string callerName=null)
Definition Socket.cs:3715

References System.Net.Sockets.Socket._handle, System.Net.NetEventSource.Info(), System.Net.NetEventSource.Log, System.Net.Sockets.SocketPal.SetLingerOption(), and System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException().

Referenced by System.Net.Sockets.Socket.SetSocketOption().