Skip to main content

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.

Properties​

MemberWhat it is
int Id { get; }Transport connection id.
bool IsFlooded { get; }Whether the connection is overloaded. Always false for the KCP connection.
int OutgoingBytesTotal { get; }Total bytes sent on this connection.
int OutgoingPacketsTotal { get; }Total packets sent on this connection.
int OutgoingQueueSize { get; }Messages waiting in the send queue.

Events​

MemberWhat it is
event Action<ITransportConnection> DisconnectedRaised when the connection drops.

Methods​

MemberWhat 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: