boost::corosio::native_tcp_acceptor
An asynchronous TCP acceptor with devirtualized accept operations.
Synopsis
template<auto Backend>
class native_tcp_acceptor
: public tcp_acceptor
Description
This class template inherits from tcp_acceptor and shadows the accept operation with a version that calls the backend implementation directly, allowing the compiler to inline through the entire call chain.
Non‐async operations (listen, close, cancel) remain unchanged and dispatch through the compiled library.
A native_tcp_acceptor IS‐A tcp_acceptor and can be passed to any function expecting tcp_acceptor&.
Thread Safety
Same as tcp_acceptor.
Types
Name |
Description |
RAII wrapper for I/O object implementation lifetime. |
|
Define backend hooks for TCP acceptor operations. |
|
Service interface for I/O object lifecycle management. |
Member Functions
Name |
Description |
|
Constructors |
|
Assignment operators |
|
|
Bind to a local endpoint. |
|
Cancel any pending asynchronous operations. |
|
Close the acceptor. |
|
Return the execution context. |
|
Get a socket option from the acceptor. |
|
Check if the acceptor is listening. |
|
Start listening for incoming connections. |
|
Get the local endpoint of the acceptor. |
|
Create the acceptor socket without binding or listening. |
|
Set a socket option on the acceptor. |
|
Asynchronously wait for the acceptor to be ready. |
Protected Member Functions
Name |
Description |
|
Move assign from another I/O object. |
Protected Static Member Functions
Name |
Description |
Create a handle bound to a service found in the context. |
|
Transfer accepted peer impl to the peer socket. |
Template Parameters
Name |
Description |
Backend |
A backend tag value (e.g., |
See Also
tcp_acceptor, epoll_t, iocp_t
Created with MrDocs