C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::net::dsl::has_accept< Base, Subtype > Class Template Reference

DSL entry point for creating a server. More...

#include <has_accept.hpp>

Inherits Base.

Public Member Functions

auto accept (uint16_t port, std::string bind_address="", bool reuse_addr=true)
 Creates an accept_factory object for the given TCP port and bind_address.
 
auto accept (tcp_accept_socket fd)
 Creates an accept_factory object for the given accept socket.
 
auto accept (ssl::tcp_acceptor acc)
 Creates an accept_factory object for the given acceptor.
 

Detailed Description

template<class Base, class Subtype>
class caf::net::dsl::has_accept< Base, Subtype >

DSL entry point for creating a server.

Member Function Documentation

◆ accept() [1/3]

template<class Base , class Subtype >
auto caf::net::dsl::has_accept< Base, Subtype >::accept ( ssl::tcp_acceptor acc)

Creates an accept_factory object for the given acceptor.

Parameters
accThe SSL acceptor for incoming TCP connections.
Returns
an accept_factory object that will start a server on acc.

◆ accept() [2/3]

template<class Base , class Subtype >
auto caf::net::dsl::has_accept< Base, Subtype >::accept ( tcp_accept_socket fd)

Creates an accept_factory object for the given accept socket.

Parameters
fdFile descriptor for the accept socket.
Returns
an accept_factory object that will start a server on fd.

◆ accept() [3/3]

template<class Base , class Subtype >
auto caf::net::dsl::has_accept< Base, Subtype >::accept ( uint16_t port,
std::string bind_address = "",
bool reuse_addr = true )

Creates an accept_factory object for the given TCP port and bind_address.

Parameters
portPort number to bind to.
bind_addressIP address to bind to. Default is an empty string.
Returns
an accept_factory object initialized with the given parameters.

The documentation for this class was generated from the following file: