45#ifndef __sockpp_acceptor_h
46#define __sockpp_acceptor_h
128 base::operator=(std::move(rhs));
170template <
typename STREAM_SOCK,
typename ADDR=
typename STREAM_SOCK::addr_t>
229 base::operator=(std::move(rhs));
Definition acceptor.h:172
acceptor_tmpl(acceptor_tmpl &&acc)
Definition acceptor.h:213
acceptor_tmpl(const addr_t &addr, int queSize=DFLT_QUE_SIZE)
Definition acceptor.h:195
ADDR addr_t
Definition acceptor.h:184
stream_sock_t accept(addr_t *clientAddr=nullptr)
Definition acceptor.h:269
static acceptor_tmpl create()
Definition acceptor.h:220
addr_t address() const
Definition acceptor.h:236
bool bind(const addr_t &addr)
Definition acceptor.h:242
STREAM_SOCK stream_sock_t
Definition acceptor.h:182
acceptor_tmpl & operator=(acceptor_tmpl &&rhs)
Definition acceptor.h:228
acceptor_tmpl(in_port_t port, int queSize=DFLT_QUE_SIZE)
Definition acceptor.h:205
bool open(in_port_t port, int queSize=DFLT_QUE_SIZE)
Definition acceptor.h:260
acceptor_tmpl()
Definition acceptor.h:189
bool open(const addr_t &addr, int queSize=DFLT_QUE_SIZE)
Definition acceptor.h:250
static socket_t create_handle(int domain)
Definition acceptor.h:84
stream_socket accept(sock_address *clientAddr=nullptr)
Definition acceptor.cpp:98
bool open(const sock_address &addr, int queSize=DFLT_QUE_SIZE, bool reuseSock=true)
Definition acceptor.cpp:62
acceptor(acceptor &&acc)
Definition acceptor.h:113
bool listen(int queSize=DFLT_QUE_SIZE)
Definition acceptor.h:136
acceptor & operator=(acceptor &&rhs)
Definition acceptor.h:127
acceptor(socket_t handle)
Definition acceptor.h:98
acceptor()
Definition acceptor.h:92
acceptor(const sock_address &addr, int queSize=DFLT_QUE_SIZE)
Definition acceptor.h:105
static const int DFLT_QUE_SIZE
Definition acceptor.h:74
static acceptor create(int domain)
Definition acceptor.cpp:46
Definition sock_address.h:65
bool bind(const sock_address &addr)
Definition socket.cpp:187
socket_t handle() const
Definition socket.h:259
socket()
Definition socket.h:183
bool check_ret_bool(T ret) const
Definition socket.h:149
sock_address_any address() const
Definition socket.cpp:195
Definition stream_socket.h:63
static socket_t create_handle(int domain)
Definition stream_socket.h:75
int socket_t
The OS socket handle.
Definition socket.h:60