com.onlineobject.objectnet Namespace

UnityTransport..::..SetPort Method

Sets the network port for the current instance.

Namespace:  com.onlineobject.objectnet
Assembly:  ObjectNetAPI (in ObjectNetAPI.dll)

Syntax


public void SetPort(

	ushort port,

	TransportPortType type

)

Parameters

port
Type: UInt16
The port number to be set.
type
Type: com.onlineobject.objectnet..::..TransportPortType
The type of transport port to set (default is Both).