INET Framework for OMNeT++/OMNEST
|
#include <SerializerBase.h>
Public Member Functions | |
virtual void | serialize (const cPacket *pkt, Buffer &b, Context &context) override |
Serializes a cPacket for transmission on the wire. More... | |
virtual cPacket * | deserialize (const Buffer &b, Context &context) override |
Puts a packet sniffed from the wire into an EtherFrame. More... | |
Public Member Functions inherited from inet::serializer::SerializerBase | |
SerializerBase (const char *name=nullptr) | |
void | serializePacket (const cPacket *pkt, Buffer &b, Context &context) |
cPacket * | deserializePacket (const Buffer &b, Context &context) |
Additional Inherited Members | |
Static Public Member Functions inherited from inet::serializer::SerializerBase | |
static SerializerBase & | lookupSerializer (const cPacket *pkt, Context &context, ProtocolGroup group, int id) |
static void | lookupAndSerialize (const cPacket *pkt, Buffer &b, Context &context, ProtocolGroup group, int id, unsigned int maxLength=(unsigned int)(-1)) |
static SerializerBase & | lookupDeserializer (Context &context, ProtocolGroup group, int id) |
static cPacket * | lookupAndDeserialize (const Buffer &b, Context &context, ProtocolGroup group, int id, unsigned int maxLength=(unsigned int)(-1)) |
|
overridevirtual |
Puts a packet sniffed from the wire into an EtherFrame.
Implements inet::serializer::SerializerBase.
Referenced by inet::serializer::IPv4Serializer::deserialize(), and inet::serializer::SerializerBase::deserializePacket().
|
overridevirtual |
Serializes a cPacket for transmission on the wire.
Returns the length of data written into buffer.
Implements inet::serializer::SerializerBase.