Back to product page

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:
HandleReference to the devP2P instance.
valueNumber of linking attempts.

int devP2P.GetLinkingRelayDelay(IntPtr Handle);
The LinkingRelayDelay(Handle) syntax has these parts:
HandleReference to the devP2P instance.
Return valueCurrent value of LinkingRelayDelay property.

int LinkingRelayDelay = value;
The LinkingRelayDelay(value) syntax has these parts:
valueNumber of linking attempts.

Sub P2P_SetLinkingRelayDelay(ByVal Handle As IntPtr, ByVal Value As Integer)
The LinkingRelayDelay(Handle,value) syntax has these parts:
HandleReference to the devP2P instance.
valueNumber of linking attempts.

Function P2P_GetLinkingRelayDelay(ByVal Handle As IntPtr) As Integer
The LinkingRelayDelay(Handle) syntax has these parts:
HandleReference to the devP2P instance.
Return valueCurrent 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

Windows
Mac OSX
Linux
BSD