
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:
The ConnectionType(Handle) syntax has these parts:
Handle | Reference to the devP2P instance. |
Return value | Type of established connection, from ConnectionTypes enumeration. |
ConnectionTypes ConnectionType;
The ConnectionType() syntax has these parts:
The ConnectionType() syntax has these parts:
Return value | Type of established connection, from ConnectionTypes enumeration. |
Function P2P_GetConnectionType(ByVal Handle As IntPtr) As Integer
The ConnectionType(Handle) syntax has these parts:
The ConnectionType(Handle) syntax has these parts:
Handle | Reference to the devP2P instance. |
Return value | Type 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
WindowsMac OSX
Linux
BSD