22#ifndef IO_SOCKET_HANDLE_HPP
23#define IO_SOCKET_HANDLE_HPP
24#include <boost/predef.h>
141 [[nodiscard]] explicit operator
bool() const noexcept;
153 -> std::strong_ordering;
164 auto operator==(const
socket_handle &other) const noexcept ->
bool;
203 auto close() noexcept ->
void;
218 mutable std::mutex mtx_;
A thread-safe, move-only RAII wrapper for a native socket handle.
socket_handle(const socket_handle &other)=delete
Deleted copy constructor.
auto operator=(const socket_handle &other) -> socket_handle &=delete
Deleted copy assignment operator.
socket_handle()=default
Default constructor. Initializes an invalid socket handle.
friend auto swap(socket_handle &lhs, socket_handle &rhs) noexcept -> void
Swaps the contents of two socket_handle objects.
The io::socket namespace provides a cross-platform abstraction for socket-level I/O operations.
int native_socket_type
The native socket handle type for POSIX systems.