|
open-dis-cpp
|
A framework for routing the packet to the correct processor. More...
#include <IncomingMessage.h>


Public Types | |
| typedef std::multimap< unsigned char, IPacketProcessor * > | PacketProcessorContainer |
| the container type for supporting processors. | |
| typedef std::multimap< unsigned char, IPduBank * > | PduBankContainer |
| the container type for supporting PDU banks. | |
Public Member Functions | |
| void | Process (const char *buf, unsigned int size, Endian e) |
| bool | AddProcessor (unsigned char id, IPacketProcessor *pp) |
| registers the ipp instance to process packets with the id More... | |
| bool | RemoveProcessor (unsigned char id, const IPacketProcessor *pp) |
| unregisters the ipp instance for packets with the id. More... | |
| bool | AddPduBank (unsigned char pdu_type, IPduBank *pduBank) |
| registers the PDU bank instance to provide the PDU object More... | |
| bool | RemovePduBank (unsigned char pdu_type, const IPduBank *pduBank) |
| unregisters the PDU bank instance More... | |
| PacketProcessorContainer & | GetProcessors () |
| const PacketProcessorContainer & | GetProcessors () const |
| PduBankContainer & | GetPduBanks () |
| const PduBankContainer & | GetPduBanks () const |
A framework for routing the packet to the correct processor.
| bool IncomingMessage::AddPduBank | ( | unsigned char | pdu_type, |
| IPduBank * | pduBank | ||
| ) |
registers the PDU bank instance to provide the PDU object
| bool IncomingMessage::AddProcessor | ( | unsigned char | id, |
| IPacketProcessor * | pp | ||
| ) |
registers the ipp instance to process packets with the id
| bool IncomingMessage::RemovePduBank | ( | unsigned char | id, |
| const IPduBank * | pduBank | ||
| ) |
unregisters the PDU bank instance
| bool IncomingMessage::RemoveProcessor | ( | unsigned char | id, |
| const IPacketProcessor * | pp | ||
| ) |
unregisters the ipp instance for packets with the id.
it does not clean up the delete the ipp.
1.8.13