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

◆ GetSocketOption() [2/3]

void System.Net.Sockets.Socket.GetSocketOption ( SocketOptionLevel optionLevel,
SocketOptionName optionName,
byte[] optionValue )
inline

Definition at line 2263 of file Socket.cs.

2264 {
2266 int optionLength = ((optionValue != null) ? optionValue.Length : 0);
2267 SocketError sockOpt = SocketPal.GetSockOpt(_handle, optionLevel, optionName, optionValue, ref optionLength);
2268 if (System.Net.NetEventSource.Log.IsEnabled())
2269 {
2270 System.Net.NetEventSource.Info(this, $"GetSockOpt returns errorCode:{sockOpt}", "GetSocketOption");
2271 }
2272 if (sockOpt != 0)
2273 {
2275 }
2276 }
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.GetSockOpt(), System.Net.NetEventSource.Info(), System.Net.NetEventSource.Log, System.Net.Sockets.Socket.ThrowIfDisposed(), and System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException().