Skip to main content

ConnectionReceiver

An abstract class in Root.Township, Alta.Networking.Internal.

Takes received packets for one connection channel and processes them now or queues them. The channel picks normal, timed or counted; servers always use normal.

Constructors​

MemberWhat it is
protected ConnectionReceiver(Connection connection, ConnectionChannel channel)Creates a ConnectionReceiver from connection and channel.

Fields​

MemberWhat it is
protected readonly ConnectionChannel channelThe channel this receives on.
protected readonly Connection connectionThe connection this receives for.

Methods​

MemberWhat it is
virtual void Dispose()Cleans up. Does nothing here.
abstract void ProcessExistingQueues()Processes queued packets.
abstract void ReceivePacket(ITransportSocket socket, ArraySegment<byte> data)Handles a packet that just arrived.

Used in​

Members of other types that take, return or hold a ConnectionReceiver: