8 #ifndef COFMSG_HELLO_H_
9 #define COFMSG_HELLO_H_ 1
11 #include "rofl/common/openflow/messages/cofmsg.h"
33 uint8_t of_version = 0,
85 pack(uint8_t *buf = (uint8_t*)0,
size_t buflen = 0);
92 unpack(uint8_t *buf,
size_t buflen);
111 operator<< (std::ostream& os,
cofmsg_hello const& msg) {
112 os << indent(0) << dynamic_cast<cofmsg const&>( msg );
113 os <<
indent(2) <<
"<cofmsg_hello >" << std::endl;
114 os <<
indent(2) << msg.body;
120 std::stringstream ss;
121 ss <<
"-Hello- " << cofmsg::str();
Definition: cofmsg_hello.h:19
virtual void reset()
Definition: cofmsg_hello.cc:78
virtual size_t length() const
Definition: cofmsg_hello.cc:87
virtual void validate()
Definition: cofmsg_hello.cc:123
virtual void pack(uint8_t *buf=(uint8_t *) 0, size_t buflen=0)
Definition: cofmsg_hello.cc:95
C++ abstraction for malloc'ed memory areas.
Definition: cmemory.h:44
virtual void unpack(uint8_t *buf, size_t buflen)
Definition: cofmsg_hello.cc:113
cofmsg_hello(uint8_t of_version=0, uint32_t xid=0, uint8_t *data=0, size_t datalen=0)
Definition: cofmsg_hello.cc:5
virtual ~cofmsg_hello()
Definition: cofmsg_hello.cc:70