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