Implements an RPC server over a TCP socket.
More...
#include <tcp_server.hpp>
template<typename Server>
class cbdc::rpc::tcp_server< Server >
Implements an RPC server over a TCP socket.
- See also
- cbdc::rpc::tcp_client
-
cbdc::rpc::server
- Template Parameters
-
Server | type implementing request handling. |
Definition at line 20 of file tcp_server.hpp.
◆ tcp_server() [1/3]
template<typename Server >
Constructor.
- Parameters
-
listen_endpoint | endpoint on which to listen for incoming connections. |
Definition at line 24 of file tcp_server.hpp.
◆ tcp_server() [2/3]
template<typename Server >
◆ tcp_server() [3/3]
template<typename Server >
◆ ~tcp_server()
template<typename Server >
Destructor.
Closes the listener and stops the message handler thread.
Definition at line 35 of file tcp_server.hpp.
◆ init()
template<typename Server >
Initializes the server.
Starts listening on the server endpoint and starts the message handler thread.
- Returns
- false if the server was unable to bind to the server endpoint.
Definition at line 46 of file tcp_server.hpp.
References cbdc::rpc::async.
◆ operator=() [1/2]
template<typename Server >
◆ operator=() [2/2]
template<typename Server >
The documentation for this class was generated from the following file: