TipcSrvConnBufferGetWriteSize


Name

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

Synopsis

T_BOOL TipcSrvConnBufferGetWriteSize(srv, write_size_return) 
T_IPC_SRV srv; 
T_INT4 *write_size_return; 

Arguments

srv — connection handle to the RTserver

write_size_return — returned number of bytes

Return Values

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

Diagnostics

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

Description

TipcSrvConnBufferGetWriteSize 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

TipcSrvConnBufferGetReadSize

Examples

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

T_IPC_SRV srv; 
T_INT4 write_size; 
. 
. 
. 
if (!TipcSrvConnBufferGetWriteSize(srv, &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