cppnet
C++ network utilities for asynchronous servers.
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
net::timers::socketpair_interrupt_source_t Struct Reference

A socketpair interrupt source. More...

#include <net/timers/interrupt.hpp>

Public Types

using socket_type = io::socket::native_socket_type
 The native socket type.
 

Public Member Functions

auto interrupt () const noexcept -> void
 The interrupt method.
 

Public Attributes

std::array< socket_type, 2 > sockets {INVALID_SOCKET, INVALID_SOCKET}
 The socket pair.
 

Static Public Attributes

static constexpr auto INVALID_SOCKET = io::socket::INVALID_SOCKET
 The invalid socket constant.
 

Detailed Description

A socketpair interrupt source.

Member Function Documentation

◆ interrupt()

auto net::timers::socketpair_interrupt_source_t::interrupt ( ) const -> void
inlinenoexcept

The interrupt method.

This method is needed to comply with the InterruptSource concept.


The documentation for this struct was generated from the following file: