scc 2026.07
SystemC components library
scc::tcp4tlm::client< REQ, RESP > Class Template Reference
Collaboration diagram for scc::tcp4tlm::client< REQ, RESP >:

Public Member Functions

void configure (std::string host, unsigned port_nr)
void connect ()
bool is_remote_connected ()
connection< REQ, RESP > & client_connection (unsigned short retry_count=0)

Protected Member Functions

void setup_endpoint (boost::asio::ip::tcp::endpoint &ep)
void setup_endpoint (boost::asio::ip::udp::endpoint &ep)
bool is_local_socket (boost::asio::ip::tcp::socket &socket)
bool is_local_socket (boost::asio::ip::udp::socket &socket)

Protected Attributes

std::string host
unsigned short port
unsigned short retry_count
boost::asio::io_context io_service
connection< REQ, RESP >::ptr trace_conn
std::atomic< bool > is_connected
bool local_connection

Detailed Description

template<typename REQ, typename RESP>
class scc::tcp4tlm::client< REQ, RESP >

Definition at line 28 of file client.h.

Constructor & Destructor Documentation

◆ client()

template<typename REQ, typename RESP>
scc::tcp4tlm::client< REQ, RESP >::client ( )

Definition at line 103 of file client.h.

◆ ~client()

template<typename REQ, typename RESP>
scc::tcp4tlm::client< REQ, RESP >::~client ( )
virtual

Definition at line 112 of file client.h.

Member Function Documentation

◆ client_connection()

template<typename REQ, typename RESP>
connection< REQ, RESP > & scc::tcp4tlm::client< REQ, RESP >::client_connection ( unsigned short retry_count = 0)
inline

Definition at line 42 of file client.h.

◆ configure()

template<typename REQ, typename RESP>
void scc::tcp4tlm::client< REQ, RESP >::configure ( std::string host,
unsigned port_nr )
inline

Definition at line 33 of file client.h.

◆ connect()

template<typename REQ, typename RESP>
void scc::tcp4tlm::client< REQ, RESP >::connect ( )

Definition at line 118 of file client.h.

◆ is_local_socket() [1/2]

template<typename REQ, typename RESP>
bool scc::tcp4tlm::client< REQ, RESP >::is_local_socket ( boost::asio::ip::tcp::socket & socket)
inlineprotected

Definition at line 89 of file client.h.

◆ is_local_socket() [2/2]

template<typename REQ, typename RESP>
bool scc::tcp4tlm::client< REQ, RESP >::is_local_socket ( boost::asio::ip::udp::socket & socket)
inlineprotected

Definition at line 93 of file client.h.

◆ is_remote_connected()

template<typename REQ, typename RESP>
bool scc::tcp4tlm::client< REQ, RESP >::is_remote_connected ( )
inline

Definition at line 40 of file client.h.

◆ setup_endpoint() [1/2]

template<typename REQ, typename RESP>
void scc::tcp4tlm::client< REQ, RESP >::setup_endpoint ( boost::asio::ip::tcp::endpoint & ep)
inlineprotected

Definition at line 75 of file client.h.

◆ setup_endpoint() [2/2]

template<typename REQ, typename RESP>
void scc::tcp4tlm::client< REQ, RESP >::setup_endpoint ( boost::asio::ip::udp::endpoint & ep)
inlineprotected

Definition at line 82 of file client.h.

Member Data Documentation

◆ host

template<typename REQ, typename RESP>
std::string scc::tcp4tlm::client< REQ, RESP >::host
protected

Definition at line 55 of file client.h.

◆ io_service

template<typename REQ, typename RESP>
boost::asio::io_context scc::tcp4tlm::client< REQ, RESP >::io_service
protected

Definition at line 58 of file client.h.

◆ is_connected

template<typename REQ, typename RESP>
std::atomic<bool> scc::tcp4tlm::client< REQ, RESP >::is_connected
protected

Definition at line 60 of file client.h.

◆ local_connection

template<typename REQ, typename RESP>
bool scc::tcp4tlm::client< REQ, RESP >::local_connection
protected

Definition at line 61 of file client.h.

◆ port

template<typename REQ, typename RESP>
unsigned short scc::tcp4tlm::client< REQ, RESP >::port
protected

Definition at line 56 of file client.h.

◆ retry_count

template<typename REQ, typename RESP>
unsigned short scc::tcp4tlm::client< REQ, RESP >::retry_count
protected

Definition at line 57 of file client.h.

◆ trace_conn

template<typename REQ, typename RESP>
connection<REQ,RESP>::ptr scc::tcp4tlm::client< REQ, RESP >::trace_conn
protected

Definition at line 59 of file client.h.


The documentation for this class was generated from the following file:
  • /home/eyck/Projects/MINRES/SystemC-Components/src/components/scc/tcp4tlm/client.h