Back to product page

RelayLicense property


Holds license information to provide to mediator for using its relay(s).

Type

String.

Syntax

  • C#
  • C++
  • VB.NET
void devP2P.SetRelayLicense(IntPtr Handle, string Value);
The RelayLicense(Handle,Value) syntax has these parts:
HandleReference to the devP2P instance.
ValueLicensing data.

void devP2P.GetRelayLicense(IntPtr Handle,  StringBuilder buffer);
The RelayLicense(Handle) syntax has these parts:
HandleReference to the devP2P instance.
Return valueLicensing data.

char *RelayLicense = value;
The RelayLicense(value) syntax has these parts:
valuePointer to allocated memory where license data is stored.

Sub P2P_SetRelayLicense(ByVal Handle As IntPtr, ByVal Value As String)
The RelayLicense(Handle,value) syntax has these parts:
HandleReference to the devP2P instance.
valueLicensing data.

Sub P2P_GetRelayLicense(ByVal Handle As IntPtr, ByVal buffer As StringBuilder)
The RelayLicense(Handle) syntax has these parts:
HandleReference to the devP2P instance.
Return valueLicensing data.

Remarks

RelayLicense property is used when Search method is called, and you want to use relaying features from the mediator. This data is provided by your mediator in advance, and (depending on mediator's setup) it is required to use advanced mediator relaying features.

Licensing for relays is included in devP2P to prevent from 3rd parties to use your mediator for "expensive" relaying features, in terms of CPU and bandwidth usage. You will use this data on the mediator's side to allow specific devP2P instances to connect to your own relays or deny them.

Note that devP2P will remember this property through address reference, so keep your buffers static and valid as long as devP2P needs it. devP2P will not free or touch allocated memory in any way.

Platforms

Windows
Mac OSX
Linux
BSD