
UDPPort property
Specifies local UDP port used for listening.
Type
Integer.Syntax
- C#
- C++
- VB.NET
void devP2P.SetUDPPort(IntPtr Handle, int Value);
The UDPPort(Handle,value) syntax has these parts:
int devP2P.GetUDPPort(IntPtr Handle);
The UDPPort(Handle) syntax has these parts:
The UDPPort(Handle,value) syntax has these parts:
Handle | Reference to the devP2P instance. |
value | Integer value representing local UDP port. |
int devP2P.GetUDPPort(IntPtr Handle);
The UDPPort(Handle) syntax has these parts:
Handle | Reference to the devP2P instance. |
Return value | Integer value representing local UDP port. |
int UDPPort = value;
The UDPPort(value) syntax has these parts:
The UDPPort(value) syntax has these parts:
value | Integer value representing local UDP port. |
Sub P2P_SetUDPPort(ByVal Handle As IntPtr, ByVal Value As Integer)
The UDPPort(Handle,value) syntax has these parts:
Function P2P_GetUDPPort(ByVal Handle As IntPtr) As Integer
The UDPPort(Handle) syntax has these parts:
The UDPPort(Handle,value) syntax has these parts:
Handle | Reference to the devP2P instance. |
value | Integer value representing local UDP port. |
Function P2P_GetUDPPort(ByVal Handle As IntPtr) As Integer
The UDPPort(Handle) syntax has these parts:
Handle | Reference to the devP2P instance. |
Return value | Integer value representing local UDP port. |
Remarks
UDPPort property defines on local UDP port where devP2P listens and accepts connections from remote peer. You can predefine it before calling Start method, in which case devP2P will force using your port. You can also set it to 0, in which case devP2P will allocate first free port (as provided by the system) and fill this property with allocated port.If you're not interested which port will be allocated in Start method, it is wise to set this property to zero each time before calling the Start method, since on subsequent Start method calls devP2P could reuse previously filled port value.
Platforms
WindowsMac OSX
Linux
BSD