TipcSrvConnGetAutoFlushSize determine the auto flush size of the connection
T_BOOL TipcSrvConnGetAutoFlushSize(srv
,auto_flush_size_return
) T_IPC_SRVsrv
; T_INT4 *auto_flush_size_return
;
srv
connection handle to RTserver
auto_flush_size_return
storage for auto flush size
TRUE
if the auto flush size was successfully retrieved from the connection to RTserver, FALSE
otherwise.
If TipcSrvConnGetAutoFlushSize fails, it returns FALSE
and sets the global SmartSockets error number to one of:
TipcSrvConnGetAutoFlushSize gets the auto flush size of the connection to RTserver by calling TipcConnGetAutoFlushSize. The auto flush size is used to control how much outgoing data (in bytes) is buffered before being automatically flushed to RTserver. The default for the auto flush size is 8192 bytes. See TipcConnGetAutoFlushSize for more information on auto flush sizes.
TipcSrvConnGetAutoFlushSize may attempt to automatically create a connection to RTserver. If RTclient has a warm connection to RTserver, TipcSrvConnGetAutoFlushSize gets the auto flush size of the warm connection. See TipcSrvConnOpen for more information on automatic creation of connections and warm connections to RTserver.
Unlike other connections, the auto flush size T_IPC_NO_AUTO_FLUSH_SIZE
cannot be used with the connection to RTserver to disable all automatic flushing of outgoing messages.
If TipcSrvConnGetAutoFlushSize returns FALSE
, it does not store a value in auto_flush_size_return
.
TipcConnGetAutoFlushSize, TipcSrvConnSetAutoFlushSize
This example creates a connection to RTserver, then gets and prints the auto flush size of the connection to RTserver:
if (!TipcSrvConnGetAutoFlushSize(srv, &auto_flush_size)) {return
; /* error */
} TutOut("The connection to RTserver auto flush size is %d bytes.\n", auto_flush_size);
TIBCO SmartSockets™ Application Programming Interface Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |