qResult SetKeepAliveTimeout( qUnsignedInt32 uiKeepAliveTimeout );
Name | Description | |
---|---|---|
in | uiKeepAliveTimeout | The keep-alive timeout value (in milliseconds). |
Sets the keep-alive timeout value.
The keep-alive feature is a way for the local station to send packets to other stations to inform them that it is still functioning (that is, still alive). This function is a part of the fault-detection mechanism. For the duration of this keep-alive timeout value, keep-alive packets are sent to stations that are not sending packets. If no packets are received during the duration of time obtained by the GetMaxSilenceTime
function, it is assumed that the station is not connected. Call this method before instantiating NetZ
or NgsFacade
objects.
The default value is 1000 milliseconds.
QRESULT_SUCCESS
return value to QSUCCESS
.
CONFIDENTIAL