$darkmode
tcp_transceiver.hpp File Reference
#include <chrono>
#include <memory>
#include <string>
#include <thread>
#include <utility>
#include <boost/asio.hpp>
#include <cloe/core.hpp>
#include <cloe/core/abort.hpp>
#include <cloe/utility/tcp_transceiver_config.hpp>
Include dependency graph for tcp_transceiver.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  cloe::utility::TcpReadError
 
class  cloe::utility::TcpTransceiver
 
class  cloe::utility::TcpTransceiverFactory< T >
 

Functions

template<typename F >
auto cloe::utility::create_or_throw_with (const TcpTransceiverFullConfiguration &c) -> decltype(F{c}.create_or_throw(c.host, c.port))
 
template<typename F >
auto cloe::utility::create_or_throw_with (const TcpTransceiverFullConfiguration &c, AbortFlag &sig) -> decltype(F{c}.create_or_throw(c.host, c.port, sig))
 
template<typename F >
auto cloe::utility::create_or_null_with (const TcpTransceiverFullConfiguration &c) -> decltype(F{c}.create_or_null(c.host, c.port))
 

Function Documentation

◆ create_or_null_with()

template<typename F >
auto cloe::utility::create_or_null_with ( const TcpTransceiverFullConfiguration c) -> decltype(F{c}.create_or_null(c.host, c.port))

Return a new TcpTransceiver of the given type or returns nullptr.

This is a wrapper around creating a one-shot TcpTransceiverFactory.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_or_throw_with() [1/2]

template<typename F >
auto cloe::utility::create_or_throw_with ( const TcpTransceiverFullConfiguration c) -> decltype(F{c}.create_or_throw(c.host, c.port))

Return a new TcpTransceiver of the given type or throws an exception.

This is a wrapper around creating a one-shot TcpTransceiverFactory.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_or_throw_with() [2/2]

template<typename F >
auto cloe::utility::create_or_throw_with ( const TcpTransceiverFullConfiguration c,
AbortFlag sig 
) -> decltype(F{c}.create_or_throw(c.host, c.port, sig))

Return a new TcpTransceiver of the given type or throws an exception.

This is a wrapper around creating a one-shot TcpTransceiverFactory.

Here is the call graph for this function: