com.onlineobject.objectnet Namespace

UnityTransport..::..GetPort Method

Retrieves the network port associated with the current instance.

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

Syntax


public ushort GetPort(

	TransportPortType type

)

Parameters

type
Type: com.onlineobject.objectnet..::..TransportPortType
The type of transport port to retrieve (default is Both).

Return Value

The network port as an unsigned short.