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

◆ Shutdown()

static SocketError System.Net.Sockets.SocketPal.Shutdown ( SafeSocketHandle handle,
bool isConnected,
bool isDisconnected,
SocketShutdown how )
inlinestatic

Definition at line 798 of file SocketPal.cs.

799 {
800 SocketError socketError = global::Interop.Winsock.shutdown(handle, (int)how);
801 if (socketError != SocketError.SocketError)
802 {
803 handle.TrackShutdown(how);
804 return SocketError.Success;
805 }
806 return GetLastSocketError();
807 }
static SocketError GetLastSocketError()
Definition SocketPal.cs:22

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

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