xentara-utils v1.2.1
Xentara utilities library
Loading...
Searching...
No Matches
xentara::utils::network::WithStopSource Class Reference

Marker for using a stop source. More...

#include <network/Options.hpp>

Public Member Functions

constexpr WithStopSource (const io::StopSource &stopSource)
 Conversion constructor from a stop source reference.
 
constexpr operator const io::StopSource & () const
 Conversion to a stop source pointer.
 

Detailed Description

Marker for using a stop source.

This marker is used to specify a stop source for certain socket operations.

Just cast a reference to the stop source to WithStopSource:

WithStopSource(myStopSource)
Marker for using a stop source.
Definition Options.hpp:210
See also
xentara::utils::io::StopSource

Constructor & Destructor Documentation

◆ WithStopSource()

constexpr xentara::utils::network::WithStopSource::WithStopSource ( const io::StopSource stopSource)
explicitconstexpr

Conversion constructor from a stop source reference.

Member Function Documentation

◆ operator const io::StopSource &()

constexpr xentara::utils::network::WithStopSource::operator const io::StopSource & ( ) const
explicitconstexpr

Conversion to a stop source pointer.

Returns
A pointer to the stop source to use.