Click or drag to resize

IncomingPacketManager Class

Manages incoming packets on a connection. Expects the connection to support the IPacketIOService.
Inheritance Hierarchy
SystemObject
  Demo3D.NetIncomingMessageManagerPacketReader
    Demo3D.NetIncomingPacketManager

Namespace:  Demo3D.Net
Assembly:  Demo3D.IO (in Demo3D.IO.dll) Version: 10.0.0.0 (10.0.0.0)
Syntax
C#
public sealed class IncomingPacketManager : IncomingMessageManager<PacketReader>

The IncomingPacketManager type exposes the following members.

Constructors
  NameDescription
Public methodIncomingPacketManager
Manages incoming packets on a connection.
Top
Methods
  NameDescription
Public methodDispose
Stops the message reader.
(Inherited from IncomingMessageManagerT.)
Public methodExpect
Sets up a handler for incoming requests.
(Inherited from IncomingMessageManagerT.)
Public methodStart
Start reading messages from the connection.
(Inherited from IncomingMessageManagerT.)
Public methodStop
Stop reading messages from the connection.
(Inherited from IncomingMessageManagerT.)
Public methodStopExpecting
Removes a handler for incoming request.
(Inherited from IncomingMessageManagerT.)
Public methodTransaction
Sends a (pre-prepared) request and (optionally) waits for a response (synchronously or asynchronously).
(Inherited from IncomingMessageManagerT.)
Public methodTransactionAsync
Sends a (pre-prepared) request and (optionally) waits for a response (synchronously or asynchronously).
(Inherited from IncomingMessageManagerT.)
Top
Remarks

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.

See Also