TipcSrvConnBufferGetReadSize


Name

TipcSrvConnBufferGetReadSize — get the total number of bytes in a connection’s read buffer

Synopsis

T_BOOL TipcSrvConnBufferGetReadSize(srv, read_size_return) 
T_IPC_SRV srv; 
T_INT4 *read_size_return; 

Arguments

srv — connection handle to the RTserver

read_size_return — returned number of bytes

Return Values

TRUE if the number of bytes was sucessfully retrieved, FALSE otherwise.

Diagnostics

If TipcSrvConnBufferGetReadSize fails, it returns FALSE and sets the global SmartSockets error number to:

Description

TipcSrvConnBufferGetReadSize retrieves the total number of bytes in a connection’s read buffer.

See Also

TipcSrvConnBufferGetWriteSize

Examples

This example retrieves the number of bytes in a connection’s read buffer:

T_IPC_SRV srv; 
T_INT4 read_size; 
. 
. 
. 
if (!TipcSrvConnBufferGetReadSize(srv, &read_size)) { 
  return;  /* error */ 
}  

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