boost::corosio::native_local_stream_acceptor
Accepts Unix domain stream connections, calling the backend directly.
Synopsis
Declared in <boost/corosio/native/native_local_stream_acceptor.hpp>
template<auto Backend>
class native_local_stream_acceptor
: public local_stream_acceptor
Description
This class template inherits from local_stream_acceptor. It shadows both accept overloads (the peer‐reference form and the move‐return form) with versions that call the backend implementation directly. The compiler can then inline through the entire call chain. The move‐return form yields a native_local_stream_socket so subsequent I/O on the peer is also devirtualized.
Non‐async operations (listen, close, cancel) remain unchanged and dispatch through the compiled library.
A native_local_stream_acceptor IS‐A local_stream_acceptor and can be passed to any function expecting local_stream_acceptor&.
Thread Safety
Same as local_stream_acceptor.
Base Classes
Name |
Description |
Accepts inbound Unix domain stream connections, from a coroutine. |
Types
Name |
Description |
Owns a platform‐specific I/O implementation and destroys it when the handle goes out of scope. |
|
Backends derive from this to implement accept, option, and lifecycle management. |
|
Constructs, closes, and destroys platform implementations on behalf of an I/O object. Platform backends implement this interface. |
Member Functions
Name |
Description |
|
Constructors |
Assignment operators |
|
|
|
Assign an existing native socket to this acceptor. |
|
Bind to a local endpoint. |
|
Cancel pending asynchronous accept operations. |
|
Close the acceptor. |
|
Return the execution context. |
|
Get a socket option from the acceptor. |
|
Check if the acceptor has an open socket handle. |
|
Start listening for incoming connections. |
|
Return the local endpoint the acceptor is bound to. |
|
Get the native socket handle. |
|
Create the acceptor socket. |
|
Release ownership of the native socket handle. |
|
Set a socket option on the acceptor. |
|
Asynchronously wait for the acceptor to be ready. |
Protected Static Member Functions
Name |
Description |
Create a handle bound to a service found in the context. |
|
Install an accepted implementation into the peer socket. |
Template Parameters
Name |
Description |
Backend |
A backend tag value (e.g., |
See Also
local_stream_acceptor, epoll_t, iocp_t
Created with MrDocs