|
AsyncBerkeley
Asynchronous Berkeley sockets. Simple.
|
The io namespace contains all the functions and classes for the I/O library.
More...
Namespaces | |
| namespace | execution |
| Provides high-level interfaces for executors and completion triggers. | |
| namespace | socket |
The io::socket namespace provides a cross-platform abstraction for socket-level I/O operations. | |
Concepts | |
| concept | AllocatorLike |
| A concept that checks if a type is an allocator. | |
| concept | BasicLockable |
| A concept that validates the C++ BasicLockable named requirement. | |
| concept | ScatterGatherLike |
| A concept that describes a scatter/gather like buffer object. | |
| concept | MuxTag |
| Concept for a multiplexer tag. | |
| concept | Completion |
| Concept for a completion handler. | |
| concept | Multiplexer |
| Concept for a multiplexer. | |
| concept | SocketLike |
| Concept for types that behave like a socket. | |
| concept | DialogLike |
| Concept for types that behave like a dialog. | |
| concept | MessageLike |
| Concept for types that behave like a socket message. | |
Functions | |
| auto | accept (auto &&socket, std::span< std::byte > address={}) -> decltype(auto) |
| Accepts an incoming connection on a listening socket. | |
| auto | bind (auto &&socket, std::span< const std::byte > address) -> decltype(auto) |
| Binds a socket to a local address. | |
| auto | connect (auto &&socket, std::span< const std::byte > address) -> decltype(auto) |
| Connects a socket to a remote address. | |
| auto | fcntl (auto &&socket, int cmd, auto &&...args) -> decltype(auto) |
| Performs a file control operation on a socket. | |
| auto | getpeername (auto &&socket, std::span< std::byte > address) -> decltype(auto) |
| Gets the peer address of a connected socket. | |
| auto | getsockopt (auto &&socket, int level, int optname, std::span< std::byte > option) -> decltype(auto) |
| Gets a socket option. | |
| auto | getsockname (auto &&socket, std::span< std::byte > address) -> decltype(auto) |
| Gets the local address of a socket. | |
| auto | listen (auto &&socket, int backlog) -> decltype(auto) |
| Sets a socket to listen for incoming connections. | |
| auto | recvmsg (auto &&socket, auto &&msg, int flags) -> decltype(auto) |
| Receives a message from a socket. | |
| auto | sendmsg (auto &&socket, auto &&msg, int flags) -> decltype(auto) |
| Sends a message on a socket. | |
| auto | setsockopt (auto &&socket, int level, int optname, std::span< const std::byte > option) -> decltype(auto) |
| Sets a socket option. | |
| auto | shutdown (auto &&socket, int how) -> decltype(auto) |
| Shuts down all or part of a connection on a socket. | |
The io namespace contains all the functions and classes for the I/O library.
Provides high-level interfaces for executors and completion triggers.
This namespace provides a set of customization point objects (CPOs) for various I/O operations. These CPOs are designed to be extensible and can be customized for different types of I/O objects.