ITransportConnection
An interface in Alta.NetworkTransport.Runtime, Alta.NetworkingTransport.
One player's connection on the server-side network transport (KCP in this build): send data, disconnect and read traffic counters.
- Listed in Other Alta assemblies
- Derived types
KcpClientConnection,KcpServerConnection
Properties
Events
| Member | What it is |
|---|---|
event Action<ITransportConnection> Disconnected | Raised when the connection drops. |
Methods
| Member | What it is |
|---|---|
INetworkTransportResult Disconnect() | Closes the connection. |
INetworkTransportResult Send(byte[] data, int byteCount, int highLevelChannel) | Sends the first byteCount bytes on a channel. The KCP version overwrites byte 0 with the channel number. |
Used in
Members of other types that take, return or hold a ITransportConnection:
Connection.Connection, Connection.TransportConnection, FakeSocket.CreateConnection, ISocket.CreateConnection, ServerMessageReceiverPerConnection.HandleConnectionEvent, ServerPacketReceiver.CreateConnection, ServerPacketReceiver.DestroyConnection, Socket.CreateConnection, ITransportClient.Connection, ITransportServer.ConnectionCreated, ITransportServer.ConnectionDestroyed, KcpClientConnection.Disconnected, KcpClientWrapper.Connection, KcpServerConnection.Disconnected, KcpServerWrapper.ConnectionCreated, KcpServerWrapper.ConnectionDestroyed.