TipcConnBufferGetWriteSize


Name

TipcConnBufferGetWriteSize — get the total number of bytes in a connection’s write buffer

Synopsis

T_BOOL TipcConnBufferGetWriteSize(conn, write_size_return) 
T_IPC_CONN conn; 
T_INT4 *write_size_return; 

Arguments

conn — connection to get information for

write_size_return — returned number of bytes

Return Values

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

Diagnostics

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

Description

TipcConnBufferGetWriteSize retrieves the total number of bytes in a connection’s write buffer. The returned number is usually the same as the total number of bytes actually sent on the connection, but sometimes the returned number is larger than the number of bytes sent when the write buffer is not frequently flushed.

See Also

TipcConnBufferGetReadSize

Examples

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

T_IPC conn; 
T_INT4 write_size; 
. 
. 
. 
if (!TipcConnBufferGetWriteSize(conn, &write_size)) { 
  return;  /* error */ 
}  
 

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