dodo  0.0.1
A C++ library to create containerized Linux services
dodo::network::protocol::stomp::Connected Class Reference

A STOMP CONNECTED frame. More...

#include <stomp.hpp>

Inheritance diagram for dodo::network::protocol::stomp::Connected:
Collaboration diagram for dodo::network::protocol::stomp::Connected:

Public Member Functions

 Connected (const Version &version)
 Constructor. More...
 
virtual void generate (common::Bytes &frame) const
 Generate a CONNECTED frame. More...
 
- Public Member Functions inherited from dodo::network::protocol::stomp::Frame
virtual FrameMatch match (const common::Bytes &frame, std::list< std::string > &errors) const =0
 Checks how the data matches a frame specification. More...
 

Protected Attributes

size_t heartbeat_in_ms_
 Desired incoming heartbeat delay in milliseconds. More...
 
size_t heartbeat_out_ms_
 Offered outgoing heartbeat delay in milliseconds. More...
 
std::string server_
 The server id. More...
 
std::string session_id_
 The session id. More...
 
Version version_
 STOMP protocol version required in CONNECT handshake. More...
 

Additional Inherited Members

- Public Types inherited from dodo::network::protocol::stomp::Frame
enum  FrameMatch { FrameMatch::NoMatch, FrameMatch::IncompleteMatch, FrameMatch::FullMatch }
 The manner in which frames match the STOMP protocol. More...
 
enum  Version { Version::v1_2 }
 STOMP versions. More...
 
- Data Fields inherited from dodo::network::protocol::stomp::Frame
const common::Bytes command_connect { "STOMP" }
 CONNECT command. More...
 
const common::Bytes command_connected { "CONNECTED" }
 CONNECTED command. More...
 
const common::Bytes eol { "\n" }
 EOL sequence - use only
as the protocl allows it and the extra
serves no purpose. More...
 
const common::Bytes header_accept_version_1_2 { "accept-version:1.2" }
 STOMP 1.2 accept header. More...
 
- Protected Member Functions inherited from dodo::network::protocol::stomp::Frame
FrameMatch readCommand (const common::Bytes &frame, size_t &index, const common::Bytes &command) const
 Read a command from a frame. More...
 

Detailed Description

A STOMP CONNECTED frame.

Definition at line 203 of file stomp.hpp.

Constructor & Destructor Documentation

◆ Connected()

dodo::network::protocol::stomp::Connected::Connected ( const Version version)
inline

Constructor.

Parameters
versionThe STOMP protocol version.

Definition at line 210 of file stomp.hpp.

Member Function Documentation

◆ generate()

virtual void dodo::network::protocol::stomp::Connected::generate ( common::Bytes frame) const
virtual

Generate a CONNECTED frame.

Parameters
frameThe generation destination, which is overwritten.

Implements dodo::network::protocol::stomp::Frame.

Field Documentation

◆ heartbeat_in_ms_

size_t dodo::network::protocol::stomp::Connected::heartbeat_in_ms_
protected

Desired incoming heartbeat delay in milliseconds.

Definition at line 231 of file stomp.hpp.

◆ heartbeat_out_ms_

size_t dodo::network::protocol::stomp::Connected::heartbeat_out_ms_
protected

Offered outgoing heartbeat delay in milliseconds.

Definition at line 228 of file stomp.hpp.

◆ server_

std::string dodo::network::protocol::stomp::Connected::server_
protected

The server id.

Definition at line 237 of file stomp.hpp.

◆ session_id_

std::string dodo::network::protocol::stomp::Connected::session_id_
protected

The session id.

Definition at line 234 of file stomp.hpp.

◆ version_

Version dodo::network::protocol::stomp::Connected::version_
protected

STOMP protocol version required in CONNECT handshake.

Definition at line 225 of file stomp.hpp.


The documentation for this class was generated from the following file: