class TRIPMsg

TRIPMsg

Inheritance:


Public Methods

virtual void checkSanity() throw(TRIPBadDataException&)
Checks the sanity of TRIP Msg, and throws a Bad Data exception
const TRIPHeader& getHeader()
u_int16_t getMsgLength()
virtual TRIPOpCode getType()
virtual bool isAKeepAliveMsg()
virtual bool isANotificationMsg()
virtual bool isAOpenMsg()
virtual bool isAUpdateMsg()
friend ostream& operator<<(ostream& os, const TRIPMsg&)
virtual void writeData(int id) throw(VNetworkException&)
Writes object to given network socket in network byte order
virtual ~TRIPMsg()

Protected Fields

Sptr <TRIPHeader> _hdr
friend class TRIPMsgParser

Protected Methods

virtual string className()
virtual void dump(ostream& os)
virtual void parse(const TRIPHeader& hdr, const char* data) throw(TRIPBadDataException&)
virtual void parse(const char* data) throw(TRIPBadDataException&)
void parseHeader(const char* data) throw(TRIPBadDataException&)
void setMsgLength(u_int16_t len)
Sets the message length.The length should also include header len
TRIPMsg()

Documentation

TRIPMsg
const TRIPHeader& getHeader()

virtual ~TRIPMsg()

virtual bool isAOpenMsg()

virtual bool isAUpdateMsg()

virtual bool isANotificationMsg()

virtual bool isAKeepAliveMsg()

virtual TRIPOpCode getType()

u_int16_t getMsgLength()

friend ostream& operator<<(ostream& os, const TRIPMsg&)

virtual void checkSanity() throw(TRIPBadDataException&)
Checks the sanity of TRIP Msg, and throws a Bad Data exception

virtual void writeData(int id) throw(VNetworkException&)
Writes object to given network socket in network byte order

virtual void parse(const TRIPHeader& hdr, const char* data) throw(TRIPBadDataException&)

virtual void parse(const char* data) throw(TRIPBadDataException&)

virtual void dump(ostream& os)

virtual string className()

void parseHeader(const char* data) throw(TRIPBadDataException&)

TRIPMsg()

void setMsgLength(u_int16_t len)
Sets the message length.The length should also include header len

Sptr <TRIPHeader> _hdr

friend class TRIPMsgParser


Direct child classes:
TRIPUpdateMsg
TRIPOpenMsg
TRIPNotificationMsg
TRIPKeepAliveMsg

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de