SendKeepAlive Method

Sends a keepalive packet.

Syntax

public void sendKeepAlive();

Remarks

This method may be used to send a keepalive packet at any time to determine if the remote host is responsive. The class will send keepalive packets periodically if KeepAlive is set to True, however this method may be used an alternative to explicitly send a keepalive packet at any time.

If Timeout is set to a positive value this method will not return until an acknowledgement is received, indicating the connection is still alive. If Timeout expires the class throws an exception. If Timeout is set to 0 the operation will return immediately and DoEvents may be called in a loop to process any timeouts.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks P2P 2020 Java Edition - Version 20.0 [Build 8235]