IncomingPacketManager Class |
Namespace: Demo3D.Net
public sealed class IncomingPacketManager : IncomingMessageManager<PacketReader>
The IncomingPacketManager type exposes the following members.
| Name | Description | |
|---|---|---|
| IncomingPacketManager |
Manages incoming packets on a connection.
|
| Name | Description | |
|---|---|---|
| Dispose |
Stops the message reader.
(Inherited from IncomingMessageManagerT.) | |
| Expect |
Sets up a handler for incoming requests.
(Inherited from IncomingMessageManagerT.) | |
| Start |
Start reading messages from the connection.
(Inherited from IncomingMessageManagerT.) | |
| Stop |
Stop reading messages from the connection.
(Inherited from IncomingMessageManagerT.) | |
| StopExpecting |
Removes a handler for incoming request.
(Inherited from IncomingMessageManagerT.) | |
| Transaction |
Sends a (pre-prepared) request and (optionally) waits for a response (synchronously or asynchronously).
(Inherited from IncomingMessageManagerT.) | |
| TransactionAsync |
Sends a (pre-prepared) request and (optionally) waits for a response (synchronously or asynchronously).
(Inherited from IncomingMessageManagerT.) |
Takes control of reading packets from the socket. Matches incoming packets with a MessageHandler that's expecting the packet to arrive.
The message manager can be used with predefined MessageHandlers to accept incoming packets and route them to the appropriate handler. Or it can be used to manage a request/response style transactions, sending the request and waiting for the response.
It can be configured to send transactions synchronously, allow 'respond-behind', or allow overlapping transactions. See IncomingMessageManagerProperties for more details.