SmartSockets .NET Class Library

TipcSrv.check Method 

Check for traffic on the connection. If mode is IO_CHECK_READ, this method will return true if there is data available to be read. If , true will be returned if data can be written to the connection without blocking.

If the ss.server_read_timeout option is 0.0, this method will block for up the specified timeout. Otherwise, this method will return immediately.

public override bool check(
   int mode,
   double timeout
);

Parameters

mode
Either IO_CHECK_READ or IO_CHECK_WRITE
timeout
The length of time (in seconds). If timeout is 0.0, the connection will be polled, and no waiting will be done. If time is TIMEOUT_FOREVER, the connection will block until traffic is available.

Return Value

true if traffic has occured, false if timed out.

Exceptions

Exception TypeCondition
TipcInterruptedException Interrupt is called.
TipcException For all errors.

See Also

TipcSrv Class | TipcSrv Members | TIBCO.SMARTSOCKETS Namespace


Copyright © TIBCO Software Inc. All rights reserved