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

◆ Close() [2/2]

void System.Net.Sockets.Socket.Close ( int timeout)
inline

Definition at line 1351 of file Socket.cs.

1352 {
1353 if (timeout < -1)
1354 {
1355 throw new ArgumentOutOfRangeException("timeout");
1356 }
1358 if (System.Net.NetEventSource.Log.IsEnabled())
1359 {
1360 System.Net.NetEventSource.Info(this, $"timeout = {_closeTimeout}", "Close");
1361 }
1362 Dispose();
1363 }
static readonly System.Net.NetEventSource Log
static void Info(object thisOrContextObject, FormattableString formattableString=null, [CallerMemberName] string memberName=null)

References System.Net.Sockets.Socket._closeTimeout, System.Net.Sockets.Socket.Dispose(), System.Net.NetEventSource.Info(), System.Net.NetEventSource.Log, and System.timeout.