ServiceAddKnownDevice Method

Adds a known device to the service for connection purposes.

Definition

Namespace: Alteruna.Multiplayer.Core
Assembly: Alteruna.Multiplayer (in Alteruna.Multiplayer.dll) Version: 2.1.3+c5328b35489e83c42e288435f5acf6115fd519e0
C#
public void AddKnownDevice(
	string ip,
	ushort port
)

Parameters

ip  String
The IP address of the device to add. If null or empty, the operation will proceed with default behavior for IP handling.
port  UInt16
The port number associated with the device to add.

Exceptions

AlterunaServiceNotStartedException Thrown if the service has not been initialized prior to calling this method.

See Also