dodo
0.0.1
A C++ library to create containerized Linux services
|
Go to the documentation of this file.
39 State state = command_read;
41 while ( index < frame.
getSize() ) {
44 if ( cmd_idx == command.
getSize() ) {
52 if ( frame.
getOctet(index) ==
'\r' ) {
54 }
else if ( frame.
getOctet(index) ==
'\n' ) {
76 if (
login_.length() > 0 ) {
std::string host_
STOMP host to CONNECT.
virtual FrameMatch match(const common::Bytes &frame, std::list< std::string > &errors) const
Checks how the data matches a frame specification.
Octet getOctet(size_t index) const
Return the Octet at index.
void free()
Free and clear data.
size_t heartbeat_in_ms_
Desired incoming heartbeat delay in milliseconds.
@ FullMatch
Complete match.
const common::Bytes command_connect
CONNECT command.
An array of Octets with size elements.
@ IncompleteMatch
Match, but incomplete.
const common::Bytes eol
EOL sequence - use only as the protocl allows it and the extra serves no purpose.
void append(const Bytes &src)
Append another Bytes.
std::string passcode_
Optional passcode (required if login is not empty)
std::string login_
Optional login.
The STOMP 1.2 protocol (earlier versions not supported).
FrameMatch readCommand(const common::Bytes &frame, size_t &index, const common::Bytes &command) const
Read a command from a frame.
size_t heartbeat_out_ms_
Offered outgoing heartbeat delay in milliseconds.
FrameMatch
The manner in which frames match the STOMP protocol.
Helper class to write strings in stream format, eg.
size_t getSize() const
Return the array size.
const common::Bytes header_accept_version_1_2
STOMP 1.2 accept header.
virtual void generate(common::Bytes &frame) const
Generate a STOMP (CONNECT) frame.