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

◆ SetRawSocketOption()

void System.Net.Sockets.Socket.SetRawSocketOption ( int optionLevel,
int optionName,
ReadOnlySpan< byte > optionValue )
inline

Definition at line 2221 of file Socket.cs.

2222 {
2224 SocketError socketError = SocketPal.SetRawSockOpt(_handle, optionLevel, optionName, optionValue);
2225 if (System.Net.NetEventSource.Log.IsEnabled())
2226 {
2227 System.Net.NetEventSource.Info(this, $"SetSockOpt optionLevel:{optionLevel} optionName:{optionName} returns errorCode:{socketError}", "SetRawSocketOption");
2228 }
2229 if (socketError != 0)
2230 {
2232 }
2233 }
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.SetRawSockOpt(), System.Net.Sockets.Socket.ThrowIfDisposed(), and System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException().