Socket_activateTcpKeepAlive

Function Socket_activateTcpKeepAlive 

Source
pub unsafe extern "C" fn Socket_activateTcpKeepAlive(
    self_: Socket,
    idleTime: c_int,
    interval: c_int,
    count: c_int,
)
Expand description

active TCP keep alive for socket and set keep alive parameters

NOTE: implementation is mandatory for IEC 61850 MMS

ยงArguments

  • self - server socket instance
  • idleTime - time (in s) between last received message and first keep alive message
  • interval - time (in s) between subsequent keep alive messages if no ACK received
  • count - number of not missing keep alive ACKs until socket is considered dead