#include <PacketSerializer.h> [code]
Inherits Protocols::Generics::DataSerializer.
Inheritance diagram for Protocols::Generics::PacketSerializer:


PacketBuffer serializes Packet objects to and from a Transport. It is generic in the sense that it can read packets for any PacketProtocol.
Definition at line 40 of file PacketSerializer.h.
Public Member Functions | |
| PacketSerializer (PacketProtocol *) | |
| Creates a PacketSerializer object. | |
| ~PacketSerializer () | |
| Dtor. | |
| bool | read (Data &, Transport *) |
| Reads a packet from the underlying Transport. | |
| bool | write (const Data &, Transport *) |
| Buffers and eventually writes packet to the underlying Transport. | |
Private Member Functions | |
| CALITKO_TESTABLE | PacketSerializer (const PacketSerializer &) |
| PacketSerializer & | operator= (const PacketSerializer &) |
Private Attributes | |
| PacketProtocol * | packetProtocol |
|
|
|
|
|
Creates a PacketSerializer object.
Definition at line 32 of file PacketSerializer.cpp. |
|
|
Dtor.
Definition at line 38 of file PacketSerializer.cpp. |
|
|
|
|
||||||||||||
|
Reads a packet from the underlying Transport.
Implements Protocols::Generics::DataSerializer. Definition at line 53 of file PacketSerializer.cpp. |
|
||||||||||||
|
Buffers and eventually writes packet to the underlying Transport.
Implements Protocols::Generics::DataSerializer. Definition at line 81 of file PacketSerializer.cpp. |
|
|
Definition at line 53 of file PacketSerializer.h. |