
Ping event
Fires when Ping packet comes from remote peer.
Syntax
- C#
- C++
- VB.NET
delegate void devP2P.PingEvent(IntPtr Handle);
The Ping(Handle) syntax has these parts:
The Ping(Handle) syntax has these parts:
Handle | Reference to the devP2P instance. |
void Ping(CP2P *p2p);
The Ping(p2p) syntax has these parts:
The Ping(p2p) syntax has these parts:
p2p | Pointer to devP2P instance that fired the event. |
Delegate Sub P2P_PingEvent(ByVal Handle As IntPtr)
The Ping(Handle) syntax has these parts:
The Ping(Handle) syntax has these parts:
Handle | Reference to the devP2P instance. |
Remarks
Ping event can be fired by auto timeout feature, which sends internal PING packets each few seconds to determine if link is still valid, when no data is transferred during that time. You can also call Ping method by yourself to initiate this check.Platforms
WindowsMac OSX
Linux
BSD