boost::corosio::native_local_stream_acceptor
An asynchronous Unix stream acceptor with devirtualized accept.
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 and shadows both accept overloads (the peer‐reference form and the move‐return form) with versions that call the backend implementation directly, allowing the compiler to 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 |
|---|---|
An asynchronous Unix domain stream acceptor for coroutine I/O. |
Types
Name |
Description |
RAII wrapper for I/O object implementation lifetime. |
|
Backend hooks for local stream acceptor operations. |
|
Service interface for I/O object lifecycle management. |
Member Functions
Name |
Description |
|
Constructors |
|
Assignment operators |
|
|
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. |
|
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 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. |
|
Template Parameters
| Name | Description |
|---|---|
Backend |
A backend tag value (e.g., |
See Also
local_stream_acceptor, epoll_t, iocp_t
Created with MrDocs