com.onlineobject.objectnet Namespace

UnityTransport Methods

The UnityTransport type exposes the following members.

Methods


  Name Description
Public method Configure
Configures the event handlers for client connection, disconnection, and message reception.
Public method Connect
Initiates a connection to the network.
Public method Destroy
Destroys the network transport.
Public method GetDriver
Retrieves the network driver associated with the current instance.
Public method GetIdleTimeout
Retrieves the idle timeout duration associated with the current instance.
Public method GetIp
Retrieves the IP address associated with the current instance.
Public method GetPort
Retrieves the network port associated with the current instance.
Public method GetRealiablePipeline
Retrieves the reliable network pipeline associated with the current instance.
Public method Initialize
Configures the transport with event handlers for client connection, disconnection, and message reception.
Public method IsConnected
Checks if the network transport is currently connected.
Public method OnClientConnected
Invokes the client connected event with the provided client if the event has subscribers.
Public method OnClientDisconnected
Invokes the client disconnected event with the provided client if the event has subscribers.
Public method OnMessageReceived
Invokes the message received event with the provided client and data if the event has subscribers.
Public method Process
Processes network events.
Public method Send
Sends data to the client using the specified delivery mode.
Public method SetDriver
Sets the network driver for the current instance.
Public method SetIdleTimeout
Sets the idle timeout duration for the current instance.
Public method SetIp
Sets the IP address for the current instance.
Public method SetPort
Sets the network port for the current instance.
Public method SetRealiablePipeline
Sets the reliable network pipeline for the current instance.