SmartSockets .NET Class Library

TipcConnClient.check Method 

Checks for traffic on the connection.

If check_mode is IO_CHECK_READ, this method will return true if there is data available to be read. If IO_CHECK_WRITE, true will be returned if data can be written to the connection without blocking.

If the timeout_read option is 0.0, this method will block for up to timeout seconds. Otherwise, this method will return immediately.

Note: this method is also called by the next and search methods. This method is rarely used by end-user programs.

public virtual bool check(
   int check_mode,
   double timeout
);

Parameters

check_mode
either IO_CHECK_READ or IO_CHECK_WRITE, for checking check the read or write sides of the connection.
timeout
the length of time to wait for traffic (in seconds). If timeout it 0.0, the connection will be polled, and not waiting will be done. If timeout is TIMEOUT_FOREVER, the connection will block until traffic is available.

Return Value

true if traffic has occured, false if timed out.

See Also

TipcConnClient Class | TipcConnClient Members | TIBCO.SMARTSOCKETS Namespace


Copyright © TIBCO Software Inc. All rights reserved