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

◆ SetBlocking()

static SocketError System.Net.Sockets.SocketPal.SetBlocking ( SafeSocketHandle handle,
bool shouldBlock,
out bool willBlock )
inlinestatic

Definition at line 92 of file SocketPal.cs.

93 {
94 int argp = ((!shouldBlock) ? (-1) : 0);
95 SocketError socketError = global::Interop.Winsock.ioctlsocket(handle, -2147195266, ref argp);
96 if (socketError == SocketError.SocketError)
97 {
99 }
100 willBlock = argp == 0;
101 return socketError;
102 }
static SocketError GetLastSocketError()
Definition SocketPal.cs:22

References System.Net.Sockets.SocketPal.GetLastSocketError(), and System.handle.

Referenced by System.Net.Sockets.Socket.Dispose(), and System.Net.Sockets.Socket.InternalSetBlocking().