TipcEventGetCheckMode


Name

TipcEventGetCheckMode — get check mode value of a connection or socket event

Synopsis

T_BOOL TipcEventGetCheckMode(event, check_mode_return) 
T_IPC_EVENT event; 
T_IO_CHECK_MODE *check_mode_return; 

Arguments

event — a connection or socket event

check_mode_return — returned check mode

Return Values

TRUE if the check mode was successfully retrieved for the event, FALSE otherwise.

Diagnostics

If TipcEventGetCheckMode fails, it returns FALSE and sets the global SmartSockets error number to one of:

Description

TipcEventGetCheckMode returns the check mode value, T_IO_CHECK_READ or T_IO_CHECK_WRITE, of the event.

Caution

None

See Also

TipcEventCreateSocket, TipcEventCreateConn

Examples

This example returns the value of an event’s check mode:

T_IO_CHECK_MODE check_mode; 
 
if (!TipcEventGetCheckMode(event, &check_mode)) { 
  return;  /* error */ 
} 

TIBCO SmartSockets™ Application Programming Interface
Software Release 6.8, July 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com