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.
- Listed in Networking and servers
- Inherits or implements
IDisposable - Derived types
NormalConnectionReceiver,QueuedConnectionReceiver
Constructors
| Member | What it is |
|---|---|
protected ConnectionReceiver(Connection connection, ConnectionChannel channel) | Creates a ConnectionReceiver from connection and channel. |
Fields
| Member | What it is |
|---|---|
protected readonly ConnectionChannel channel | The channel this receives on. |
protected readonly Connection connection | The connection this receives for. |
Methods
| Member | What 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: