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