Back to product page

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:
HandleReference to the devP2P instance.
Return value0 (ErrorNone) if success, otherwise negative value from Errors enumeration.

int Ping(void);
The Ping() syntax has these parts:
Return value0 (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:
HandleReference to the devP2P instance.
Return value0 (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

Windows
Mac OSX
Linux
BSD