io
C++ I/O scheduling library with asynchronous socket operations
|
This file contains the Windows-specific socket definitions and functions. More...
#include <cassert>
#include <ios>
#include <span>
#include <tuple>
#include <winsock2.h>
#include <ws2tcpip.h>
Go to the source code of this file.
Namespaces | |
namespace | io |
The io namespace contains all the functions and classes for the I/O library. | |
namespace | io::socket |
The io::socket namespace provides a cross-platform abstraction for socket-level I/O operations. | |
Functions | |
auto | io::socket::close (native_socket_type socket) noexcept -> int |
Closes a socket descriptor on POSIX systems. | |
template<typename... Args> | |
auto | io::socket::fcntl (native_socket_type socket, int cmd, Args &&...args) noexcept -> int |
Provides a C++ wrapper for the POSIX fcntl function. | |
auto | io::socket::sendmsg (native_socket_type socket, const socket_message_type *msg, int flags) noexcept -> std::streamsize |
Sends a message on a socket. | |
auto | io::socket::recvmsg (native_socket_type socket, socket_message_type *msg, int flags) noexcept -> std::streamsize |
Receives a message from a socket. | |
This file contains the Windows-specific socket definitions and functions.
Definition in file socket.hpp.
#define IO_SOCKET_WINDOWS_HPP |
Definition at line 23 of file socket.hpp.