Show TOC

Background documentationNI Keepalive Locate this document in the navigation structure


In NI a keepalive mechanism is implemented, to check connections between applications. That includes 2 messages, a request and response.

The request message contains 8 data bytes, headed by the data length, a 4-byte integer. The data corresponds the ASCII String "NI_PING\0". If the receiver mode is NI_MSG_IO, this packet will be detected as a keepalive request. The receiver is going to reply with the response packet. This response is as long as the request and contains the ASCII sting "NI_PONG\0". The keepalive initiator notes the test as successful, if he receives the response within a specified time interval.