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

◆ Shutdown()

void System.Net.Sockets.Socket.Shutdown ( SocketShutdown how)
inline

Definition at line 2754 of file Socket.cs.

2755 {
2757 if (System.Net.NetEventSource.Log.IsEnabled())
2758 {
2759 System.Net.NetEventSource.Info(this, $"how:{how}", "Shutdown");
2760 }
2761 SocketError socketError = SocketPal.Shutdown(_handle, _isConnected, _isDisconnected, how);
2762 if (System.Net.NetEventSource.Log.IsEnabled())
2763 {
2764 System.Net.NetEventSource.Info(this, $"Shutdown returns errorCode:{socketError}", "Shutdown");
2765 }
2766 if (socketError != 0 && socketError != SocketError.NotSocket)
2767 {
2769 }
2772 }
static readonly System.Net.NetEventSource Log
static void Info(object thisOrContextObject, FormattableString formattableString=null, [CallerMemberName] string memberName=null)
SocketError InternalSetBlocking(bool desired, out bool current)
Definition Socket.cs:3592
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.Socket._isConnected, System.Net.Sockets.Socket._isDisconnected, System.Net.Sockets.Socket._willBlockInternal, System.Net.NetEventSource.Info(), System.Net.Sockets.Socket.InternalSetBlocking(), System.Net.NetEventSource.Log, System.Net.Sockets.Socket.SetToDisconnected(), System.Net.Sockets.SocketPal.Shutdown(), System.Net.Sockets.Socket.ThrowIfDisposed(), and System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException().