
MediatorPort property
Holds port of the mediator.
Type
Integer.Syntax
- C#
- C++
- VB.NET
void devVPN.SetMediatorPort(IntPtr Handle, int Value);
The MediatorPort(Handle,value) syntax has these parts:
int devVPN.GetMediatorPort(IntPtr Handle);
The MediatorPort(Handle) syntax has these parts:
The MediatorPort(Handle,value) syntax has these parts:
Handle | Reference to the devVPN instance. |
value | Port where mediator listens. |
int devVPN.GetMediatorPort(IntPtr Handle);
The MediatorPort(Handle) syntax has these parts:
Handle | Reference to the devVPN instance. |
Return value | Integer value representing mediator's port. |
int MediatorPort = value;
The MediatorPort(value) syntax has these parts:
The MediatorPort(value) syntax has these parts:
value | Integer value representing mediator's port. |
Sub VPN_SetMediatorPort(ByVal Handle As IntPtr, ByVal Value As Integer)
The MediatorPort(Handle,value) syntax has these parts:
Function VPN_GetMediatorPort(ByVal Handle As IntPtr) As Integer
The MediatorPort(Handle) syntax has these parts:
The MediatorPort(Handle,value) syntax has these parts:
Handle | Reference to the devVPN instance. |
value | Port where mediator listens. |
Function VPN_GetMediatorPort(ByVal Handle As IntPtr) As Integer
The MediatorPort(Handle) syntax has these parts:
Handle | Reference to the devVPN instance. |
Return value | Integer value representing mediator's port. |
Remarks
Set this property to port where mediator listens for Search method, together with MediatorAddress 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.
Platforms
WindowsMac OSX
Linux
BSD
iPhone IOS