A STOMP CONNECT frame.
More...
#include <stomp.hpp>
A STOMP CONNECT frame.
Definition at line 99 of file stomp.hpp.
◆ Connect()
Constructor.
- Parameters
-
version | The STOMP protocol version. |
Definition at line 106 of file stomp.hpp.
◆ generate()
void dodo::network::protocol::stomp::Connect::generate |
( |
common::Bytes & |
frame | ) |
const |
|
virtual |
Generate a STOMP (CONNECT) frame.
- Parameters
-
frame | The generation destination, which is overwritten. |
Implements dodo::network::protocol::stomp::Frame.
Definition at line 68 of file stomp.cpp.
References dodo::common::Bytes::append(), dodo::network::protocol::stomp::Frame::command_connect, dodo::network::protocol::stomp::Frame::eol, dodo::common::Bytes::free(), dodo::network::protocol::stomp::Frame::header_accept_version_1_2, heartbeat_in_ms_, heartbeat_out_ms_, host_, login_, and passcode_.
◆ getHeartbeatOut()
size_t dodo::network::protocol::stomp::Connect::getHeartbeatOut |
( |
| ) |
const |
|
inline |
Return the outgoing heartbeat in milliseconds.
- Returns
- the outgoing heartbeat interval in milliseconds.
Definition at line 171 of file stomp.hpp.
References heartbeat_out_ms_.
◆ getHost()
std::string dodo::network::protocol::stomp::Connect::getHost |
( |
| ) |
const |
|
inline |
Return the STOMP host.
- Returns
- The host.
Definition at line 134 of file stomp.hpp.
References host_.
◆ getLogin()
std::string dodo::network::protocol::stomp::Connect::getLogin |
( |
| ) |
const |
|
inline |
Return the login.
- Returns
- The login.
Definition at line 146 of file stomp.hpp.
References login_.
◆ getPasscode()
std::string dodo::network::protocol::stomp::Connect::getPasscode |
( |
| ) |
const |
|
inline |
Return the passcode.
- Returns
- The passcode.
Definition at line 158 of file stomp.hpp.
References passcode_.
◆ match()
◆ setHeartbeat()
void dodo::network::protocol::stomp::Connect::setHeartbeat |
( |
size_t |
out, |
|
|
size_t |
in |
|
) |
| |
|
inline |
◆ setHost()
void dodo::network::protocol::stomp::Connect::setHost |
( |
const std::string & |
host | ) |
|
|
inline |
Set the STOMP host.
- Parameters
-
Definition at line 140 of file stomp.hpp.
References host_.
◆ setLogin()
void dodo::network::protocol::stomp::Connect::setLogin |
( |
const std::string & |
login | ) |
|
|
inline |
◆ setPasscode()
void dodo::network::protocol::stomp::Connect::setPasscode |
( |
const std::string & |
passcode | ) |
|
|
inline |
Set the login.
- Parameters
-
passcode | The passcode to set. |
Definition at line 164 of file stomp.hpp.
References passcode_.
◆ heartbeat_in_ms_
size_t dodo::network::protocol::stomp::Connect::heartbeat_in_ms_ |
|
protected |
◆ heartbeat_out_ms_
size_t dodo::network::protocol::stomp::Connect::heartbeat_out_ms_ |
|
protected |
◆ host_
std::string dodo::network::protocol::stomp::Connect::host_ |
|
protected |
◆ login_
std::string dodo::network::protocol::stomp::Connect::login_ |
|
protected |
◆ passcode_
std::string dodo::network::protocol::stomp::Connect::passcode_ |
|
protected |
◆ version_
Version dodo::network::protocol::stomp::Connect::version_ |
|
protected |
STOMP protocol version required in CONNECT handshake.
Definition at line 191 of file stomp.hpp.
The documentation for this class was generated from the following files: