
Ping method
Sends internal PING packet to remote peer.
Type
Integer.Syntax
- C#
- C++
- VB.NET
int devP2P.Ping(IntPtr Handle);
The Ping(Handle) syntax has these parts:
The Ping(Handle) syntax has these parts:
Handle | Reference to the devP2P instance. |
Return value | 0 (ErrorNone) if success, otherwise negative value from Errors enumeration. |
int Ping(void);
The Ping() syntax has these parts:
The Ping() syntax has these parts:
Return value | 0 (ErrorNone) if success, otherwise negative value from Errors enumeration. |
Function P2P_Ping(ByVal Handle As IntPtr) As Integer
The Ping(Handle) syntax has these parts:
The Ping(Handle) syntax has these parts:
Handle | Reference to the devP2P instance. |
Return value | 0 (ErrorNone) if success, otherwise negative value from Errors enumeration. |
Remarks
This method initiates sending of internal Ping packet to remote. As a result, on remote Ping event will fire. It is usually used to check if remote side is still connected.Platforms
WindowsMac OSX
Linux
BSD