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

◆ Poll()

bool System.Net.Sockets.Socket.Poll ( int microSeconds,
SelectMode mode )
inline

Definition at line 2337 of file Socket.cs.

2338 {
2340 bool status;
2341 SocketError socketError = SocketPal.Poll(_handle, microSeconds, mode, out status);
2342 if (System.Net.NetEventSource.Log.IsEnabled())
2343 {
2344 System.Net.NetEventSource.Info(this, $"Poll returns socketCount:{(int)socketError}", "Poll");
2345 }
2346 if (socketError != 0)
2347 {
2349 }
2350 return status;
2351 }
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.SocketPal.Poll(), System.Net.Sockets.Socket.ThrowIfDisposed(), and System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException().

Referenced by System.Net.Sockets.TcpListener.Pending(), and System.Net.Http.HttpConnection.PrepareForReuse().