ServiceOpenPort Method

Opens the communication port and initializes the device manager with the specified settings.

Definition

Namespace: Alteruna.Multiplayer.Core
Assembly: Alteruna (in Alteruna.dll) Version: 2.0.1+a1176e08a0b4a6bfd8fefeddde6163a16d29e5ab
C#
public void OpenPort(
	ushort port = 0,
	ushort publishPort = 19090,
	bool broadcast = false,
	TransportType transportType = TransportType.Default
)

Parameters

port  UInt16  (Optional)
The port number to open. If set to 0, defaults to the system-assigned port.
publishPort  UInt16  (Optional)
 
broadcast  Boolean  (Optional)
 
transportType  TransportType  (Optional)
The transport protocol to be used for communication.

Exceptions

AlterunaServiceNotStartedException Thrown if the Alteruna service has not properly been initialized and started.

See Also