32 template<
typename Socket>
33 static bool get(
const Socket& sock) noexcept {
34 return get_impl(sock.implementation());
37 template<
typename Socket>
38 static void set(Socket& sock,
bool value) noexcept {
39 set_impl(sock.implementation(), value);
43 static bool get_impl(internal_::socket&) noexcept;
44 static
void set_impl(internal_::socket&,
bool) noexcept;
constexpr non_blocking_t non_blocking
Toggle non-blocking I/O mode on sockets.
Dummy type for nonblocking option.
This file defines tcp::socket type, base class for outgoing TCP connections.
static void set(Socket &sock, bool value) noexcept