IPWorks P2P 2020 Kotlin Edition

Questions / Feedback?

SendKeepAlive Method

Sends a keepalive packet.

Syntax

public fun sendKeepAlive()

Remarks

This method may be used to send a keepalive packet at any time to determine if the remote host is responsive. The component 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 component 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) 2021 /n software inc. - All rights reserved.
IPWorks P2P 2020 Kotlin Edition - Version 20.0 [Build 7941]