Back to product page

MediatorAddress property


Holds IP address (or hostname) of the mediator.

Type

String.

Syntax

  • C#
  • C++
  • VB.NET
void devVPN.GetMediatorAddress(IntPtr Handle, StringBuilder buffer);
The MediatorAddress(Handle,buffer) syntax has these parts:
HandleReference to the devVPN instance.
bufferBuffer where output is stored.

void devVPN.SetMediatorAddress(IntPtr Handle, string Value);
The MediatorAddress(Handle,value) syntax has these parts:
HandleReference to the devVPN instance.
valueNew mediator address to set.

char *MediatorAddress = value;
The MediatorAddress(value) syntax has these parts:
valuePointer to allocated memory where mediator address is stored.

Sub VPN_GetMediatorAddress(ByVal Handle As IntPtr, ByVal buffer As StringBuilder)
The MediatorAddress(Handle,buffer) syntax has these parts:
HandleReference to the devVPN instance.
bufferBuffer where output is stored.

Remarks

Set this property to hostname of mediator that is used with Search method, together with MediatorPort property. devVPN will send mediator requests to that IP/Port to locate and possibly request connection with remote peer.

UDP connection is used for mediator, to help with UDP hole punching for direct peer-to-peer connection. Even if you use only TCP protocol in Start method, mediator can be used to obtain information about announced TCP ports open by remote peer.

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

Platforms

Windows
Mac OSX
Linux
BSD
iPhone IOS