Mentalis.org Security Library documentation

VirtualSocket.Poll Method 

Determines the status of the VirtualSocket.

[Visual Basic]
Overridable Public Function Poll( _
   ByVal microSeconds As Integer, _
   ByVal mode As SelectMode _
) As Boolean
[C#]
public virtual bool Poll(
   int microSeconds,
   SelectMode mode
);

Parameters

microSeconds
The time to wait for a response, in microseconds.
mode
One of the SelectMode values.

Return Value

See the Socket documentation for the return values.

Remarks

Set microSeconds parameter to a negative integer if you would like to wait indefinitely for a response.

Exceptions

Exception TypeCondition
NotSupportedExceptionThe mode parameter is not one of the SelectMode values.
SocketExceptionAn operating system error occurs while accessing the VirtualSocket.
ObjectDisposedExceptionThe VirtualSocket has been closed.

See Also

VirtualSocket Class | VirtualSocket Members | Org.Mentalis.Security.Ssl Namespace