
LinkingRelayDelay property
Total number of direct link attempts before relay is used.
Type
Integer.Syntax
- C#
- C++
- VB.NET
void devP2P.SetLinkingRelayDelay(IntPtr Handle, int Value);
The LinkingRelayDelay(Handle,value) syntax has these parts:
int devP2P.GetLinkingRelayDelay(IntPtr Handle);
The LinkingRelayDelay(Handle) syntax has these parts:
The LinkingRelayDelay(Handle,value) syntax has these parts:
Handle | Reference to the devP2P instance. |
value | Number of linking attempts. |
int devP2P.GetLinkingRelayDelay(IntPtr Handle);
The LinkingRelayDelay(Handle) syntax has these parts:
Handle | Reference to the devP2P instance. |
Return value | Current value of LinkingRelayDelay property. |
int LinkingRelayDelay = value;
The LinkingRelayDelay(value) syntax has these parts:
The LinkingRelayDelay(value) syntax has these parts:
value | Number of linking attempts. |
Sub P2P_SetLinkingRelayDelay(ByVal Handle As IntPtr, ByVal Value As Integer)
The LinkingRelayDelay(Handle,value) syntax has these parts:
Function P2P_GetLinkingRelayDelay(ByVal Handle As IntPtr) As Integer
The LinkingRelayDelay(Handle) syntax has these parts:
The LinkingRelayDelay(Handle,value) syntax has these parts:
Handle | Reference to the devP2P instance. |
value | Number of linking attempts. |
Function P2P_GetLinkingRelayDelay(ByVal Handle As IntPtr) As Integer
The LinkingRelayDelay(Handle) syntax has these parts:
Handle | Reference to the devP2P instance. |
Return value | Current value of LinkingRelayDelay property. |
Remarks
Assuming you set your RelayLicense property, and are allowed to use the relay from the mediator, this property defines how many linking packets will be sent to remote peer trying to establish direct connection. If connection is not established after LinkingRetryCount packets, devP2P will send packets to relay as well, and most probably succeed in establishing relayed connection.Note that relayed connection can be twice slower as direct one, since extra hop is used for transferring the data.
Platforms
WindowsMac OSX
Linux
BSD