TipcConnBufferGetWriteSize get the total number of bytes in a connection’s write buffer
T_BOOL TipcConnBufferGetWriteSize(conn
,write_size_return
) T_IPC_CONNconn
; T_INT4 *write_size_return
;
conn
connection to get information for
write_size_return
returned number of bytes
TRUE
if the number of bytes was sucessfully retrieved, FALSE
otherwise.
If TipcConnBufferGetWriteSize fails, it returns FALSE
and sets the global SmartSockets error number to:
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.
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 |