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

◆ IOControl() [1/2]

int System.Net.Sockets.Socket.IOControl ( int ioControlCode,
byte?[] optionInValue,
byte?[] optionOutValue )
inline

Definition at line 2122 of file Socket.cs.

2123 {
2125 int optionLength = 0;
2126 SocketError socketError = SocketPal.WindowsIoctl(_handle, ioControlCode, optionInValue, optionOutValue, out optionLength);
2127 if (System.Net.NetEventSource.Log.IsEnabled())
2128 {
2129 System.Net.NetEventSource.Info(this, $"WindowsIoctl returns errorCode:{socketError}", "IOControl");
2130 }
2131 if (socketError != 0)
2132 {
2134 }
2135 return optionLength;
2136 }
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.Socket.ThrowIfDisposed(), System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(), and System.Net.Sockets.SocketPal.WindowsIoctl().

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