Back to product page

ConnectionType property


Returns type of transport with remote peer.

Type

ConnectionTypes enumeration.

Syntax

  • C#
  • C++
  • VB.NET
int devP2P.GetConnectionType(IntPtr Handle);
The ConnectionType(Handle) syntax has these parts:
HandleReference to the devP2P instance.
Return valueType of established connection, from ConnectionTypes enumeration.

ConnectionTypes ConnectionType;
The ConnectionType() syntax has these parts:
Return valueType of established connection, from ConnectionTypes enumeration.

Function P2P_GetConnectionType(ByVal Handle As IntPtr) As Integer
The ConnectionType(Handle) syntax has these parts:
HandleReference to the devP2P instance.
Return valueType of established connection, from ConnectionTypes enumeration.

Remarks

This property returns type of established connection with remote peer. Typically this will be set to ConnectionDirect, but if RelayLicense set, and devP2P used relay to connect to remote peer, such relayed connection will be returned here so you know how you connect to remote.

Platforms

Windows
Mac OSX
Linux
BSD