|
CPN
Computational Process Networks
|
#include <PacketDecoder.h>
Inheritance diagram for CPN::PacketDecoder:
Collaboration diagram for CPN::PacketDecoder:Public Member Functions | |
| PacketDecoder () | |
| virtual | ~PacketDecoder () |
| void * | GetDecoderBytes (unsigned &amount) |
| void | ReleaseDecoderBytes (unsigned amount) |
| void | Reset () |
| unsigned | NumBytes () const |
| void | FirePacket (const Packet &packet) |
| virtual void | EnqueuePacket (const Packet &packet)=0 |
| virtual void | DequeuePacket (const Packet &packet)=0 |
| virtual void | ReadBlockPacket (const Packet &packet)=0 |
| virtual void | WriteBlockPacket (const Packet &packet)=0 |
| virtual void | EndOfWritePacket (const Packet &packet)=0 |
| virtual void | EndOfReadPacket (const Packet &packet)=0 |
| virtual void | GrowPacket (const Packet &packet)=0 |
| virtual void | D4RTagPacket (const Packet &packet)=0 |
| virtual void | FlushPacket (const Packet &packet)=0 |
| virtual void | ResetPacket (const Packet &packet)=0 |
| virtual void | IDReaderPacket (const Packet &packet)=0 |
| virtual void | IDWriterPacket (const Packet &packet)=0 |
Private Attributes | |
| Packet | header |
| unsigned | numbytes |
The packet decoder receives bytes through GetDecoderbytes and ReleaseDecoderBytes. When enough bytes have been recieved to call one of the Received event functions those events will be called and the internal state will remove the information. If the information is not delt with in the event function it will be lost. This class is ment to be enherited by some other class which implements the event functions.
Definition at line 40 of file PacketDecoder.h.
| CPN::PacketDecoder::PacketDecoder | ( | ) |
Definition at line 30 of file PacketDecoder.cc.
|
virtual |
Definition at line 35 of file PacketDecoder.cc.
|
pure virtualinherited |
Implemented in CPN::RemoteQueue.
Referenced by CPN::PacketHandler::FirePacket().
Here is the caller graph for this function:
|
pure virtualinherited |
Implemented in CPN::RemoteQueue.
Referenced by CPN::PacketHandler::FirePacket().
Here is the caller graph for this function:
|
pure virtualinherited |
Implemented in CPN::RemoteQueue.
Referenced by CPN::PacketHandler::FirePacket().
Here is the caller graph for this function:
|
pure virtualinherited |
Implemented in CPN::RemoteQueue.
Referenced by CPN::PacketHandler::FirePacket().
Here is the caller graph for this function:
|
pure virtualinherited |
Implemented in CPN::RemoteQueue.
Referenced by CPN::PacketHandler::FirePacket().
Here is the caller graph for this function:
|
inherited |
Definition at line 31 of file PacketHeader.cc.
References ASSERT, CPN::PacketHandler::D4RTagPacket(), CPN::PacketHandler::DequeuePacket(), CPN::PacketHandler::EndOfReadPacket(), CPN::PacketHandler::EndOfWritePacket(), CPN::PacketHandler::EnqueuePacket(), CPN::PacketHandler::FlushPacket(), CPN::PacketHandler::GrowPacket(), CPN::PacketHandler::IDReaderPacket(), CPN::PacketHandler::IDWriterPacket(), CPN::PACKET_D4RTAG, CPN::PACKET_DEQUEUE, CPN::PACKET_ENDOFREAD, CPN::PACKET_ENDOFWRITE, CPN::PACKET_ENQUEUE, CPN::PACKET_FLUSH, CPN::PACKET_GROW, CPN::PACKET_ID_READER, CPN::PACKET_ID_WRITER, CPN::PACKET_READBLOCK, CPN::PACKET_RESET, CPN::PACKET_WRITEBLOCK, CPN::PacketHandler::ReadBlockPacket(), CPN::PacketHandler::ResetPacket(), CPN::Packet::Type(), CPN::Packet::Valid(), and CPN::PacketHandler::WriteBlockPacket().
Referenced by ReleaseDecoderBytes().
Here is the call graph for this function:
Here is the caller graph for this function:
|
pure virtualinherited |
Implemented in CPN::RemoteQueue.
Referenced by CPN::PacketHandler::FirePacket().
Here is the caller graph for this function:| void * CPN::PacketDecoder::GetDecoderBytes | ( | unsigned & | amount | ) |
Definition at line 37 of file PacketDecoder.cc.
References ASSERT, header, CPN::Packet::header, and numbytes.
Referenced by CPN::RemoteQueue::Read().
Here is the caller graph for this function:
|
pure virtualinherited |
Implemented in CPN::RemoteQueue.
Referenced by CPN::PacketHandler::FirePacket().
Here is the caller graph for this function:
|
pure virtualinherited |
Implemented in CPN::RemoteQueue.
Referenced by CPN::PacketHandler::FirePacket().
Here is the caller graph for this function:
|
pure virtualinherited |
Implemented in CPN::RemoteQueue.
Referenced by CPN::PacketHandler::FirePacket().
Here is the caller graph for this function:
|
inline |
Definition at line 48 of file PacketDecoder.h.
|
pure virtualinherited |
Implemented in CPN::RemoteQueue.
Referenced by CPN::PacketHandler::FirePacket().
Here is the caller graph for this function:| void CPN::PacketDecoder::ReleaseDecoderBytes | ( | unsigned | amount | ) |
Definition at line 44 of file PacketDecoder.cc.
References ASSERT, CPN::PacketHandler::FirePacket(), header, CPN::Packet::header, numbytes, and CPN::Packet::Valid().
Referenced by CPN::RemoteQueue::Read().
Here is the call graph for this function:
Here is the caller graph for this function:| void CPN::PacketDecoder::Reset | ( | ) |
|
pure virtualinherited |
Implemented in CPN::RemoteQueue.
Referenced by CPN::PacketHandler::FirePacket().
Here is the caller graph for this function:
|
pure virtualinherited |
Implemented in CPN::RemoteQueue.
Referenced by CPN::PacketHandler::FirePacket().
Here is the caller graph for this function:
|
private |
Definition at line 52 of file PacketDecoder.h.
Referenced by GetDecoderBytes(), ReleaseDecoderBytes(), and CPN::RemoteQueue::SendEnqueuePacket().
|
private |
Definition at line 53 of file PacketDecoder.h.
Referenced by GetDecoderBytes(), ReleaseDecoderBytes(), and Reset().
1.8.5