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

◆ GetLingerOpt()

LingerOption System.Net.Sockets.Socket.GetLingerOpt ( )
inlineprivate

Definition at line 3547 of file Socket.cs.

3548 {
3549 LingerOption optionValue;
3550 SocketError lingerOption = SocketPal.GetLingerOption(_handle, out optionValue);
3551 if (System.Net.NetEventSource.Log.IsEnabled())
3552 {
3553 System.Net.NetEventSource.Info(this, $"GetLingerOption returns errorCode:{lingerOption}", "GetLingerOpt");
3554 }
3555 if (lingerOption != 0)
3556 {
3558 }
3559 return optionValue;
3560 }
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.Sockets.SocketPal.GetLingerOption(), System.Net.NetEventSource.Info(), System.Net.NetEventSource.Log, and System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException().

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