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

◆ GetRawSocketOption()

int System.Net.Sockets.Socket.GetRawSocketOption ( int optionLevel,
int optionName,
Span< byte > optionValue )
inline

Definition at line 2301 of file Socket.cs.

2302 {
2304 int optionLength = optionValue.Length;
2305 SocketError rawSockOpt = SocketPal.GetRawSockOpt(_handle, optionLevel, optionName, optionValue, ref optionLength);
2306 if (System.Net.NetEventSource.Log.IsEnabled())
2307 {
2308 System.Net.NetEventSource.Info(this, $"GetRawSockOpt optionLevel:{optionLevel} optionName:{optionName} returned errorCode:{rawSockOpt}", "GetRawSocketOption");
2309 }
2310 if (rawSockOpt != 0)
2311 {
2313 }
2314 return optionLength;
2315 }
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.GetRawSockOpt(), System.Net.NetEventSource.Info(), System.Net.NetEventSource.Log, System.Net.Sockets.Socket.ThrowIfDisposed(), and System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException().