#include <spoe_connection.h>
◆ SpoeConnection() [1/2]
| mm::comm::spoe::SpoeConnection::SpoeConnection |
( |
| ) |
|
◆ ~SpoeConnection()
| mm::comm::spoe::SpoeConnection::~SpoeConnection |
( |
| ) |
|
◆ SpoeConnection() [2/2]
| mm::comm::spoe::SpoeConnection::SpoeConnection |
( |
const SpoeConnection & |
| ) |
|
|
delete |
◆ close()
| void mm::comm::spoe::SpoeConnection::close |
( |
| ) |
|
Closes the connection. Waits for a request in progress to finish first.
◆ connect()
| std::expected< void, std::string > mm::comm::spoe::SpoeConnection::connect |
( |
const std::string & |
host, |
|
|
uint16_t |
port, |
|
|
std::chrono::milliseconds |
timeout |
|
) |
| |
Opens the connection. An open connection is closed first.
◆ discardedReplies()
| uint64_t mm::comm::spoe::SpoeConnection::discardedReplies |
( |
| ) |
const |
The replies discarded because they matched no request in progress.
◆ isOpen()
| bool mm::comm::spoe::SpoeConnection::isOpen |
( |
| ) |
const |
◆ operator=()
◆ request()
| std::expected< Frame, ConnectionError > mm::comm::spoe::SpoeConnection::request |
( |
MessageType |
type, |
|
|
uint16_t |
status, |
|
|
std::span< const uint8_t > |
data, |
|
|
std::chrono::milliseconds |
timeout |
|
) |
| |
Sends one request and waits up to timeout for its reply.
The documentation for this class was generated from the following files: