MySQL 8.0.39
Source Code Documentation
net::socket_base::linger Class Reference

socket option for SO_LINGER More...

#include <socket.h>

Public Member Functions

 linger () noexcept
 
 linger (bool e, std::chrono::seconds t) noexcept
 
bool enabled () const noexcept
 
void enabled (bool e) noexcept
 
std::chrono::seconds timeout () const noexcept
 
void timeout (std::chrono::seconds t) noexcept
 
template<class Protocol >
int level (const Protocol &) const noexcept
 
template<class Protocol >
int name (const Protocol &) const noexcept
 
template<class Protocol >
void * data (const Protocol &) noexcept
 
template<class Protocol >
const void * data (const Protocol &) const noexcept
 
template<class Protocol >
size_t size (const Protocol &) const noexcept
 
template<class Protocol >
void resize (const Protocol &, size_t s)
 

Private Attributes

::linger value_
 

Detailed Description

socket option for SO_LINGER

Constructor & Destructor Documentation

◆ linger() [1/2]

net::socket_base::linger::linger ( )
inlinenoexcept

◆ linger() [2/2]

net::socket_base::linger::linger ( bool  e,
std::chrono::seconds  t 
)
inlinenoexcept

Member Function Documentation

◆ data() [1/2]

template<class Protocol >
const void * net::socket_base::linger::data ( const Protocol ) const
inlinenoexcept

◆ data() [2/2]

template<class Protocol >
void * net::socket_base::linger::data ( const Protocol )
inlinenoexcept

◆ enabled() [1/2]

bool net::socket_base::linger::enabled ( ) const
inlinenoexcept

◆ enabled() [2/2]

void net::socket_base::linger::enabled ( bool  e)
inlinenoexcept

◆ level()

template<class Protocol >
int net::socket_base::linger::level ( const Protocol ) const
inlinenoexcept

◆ name()

template<class Protocol >
int net::socket_base::linger::name ( const Protocol ) const
inlinenoexcept

◆ resize()

template<class Protocol >
void net::socket_base::linger::resize ( const Protocol ,
size_t  s 
)
inline

◆ size()

template<class Protocol >
size_t net::socket_base::linger::size ( const Protocol ) const
inlinenoexcept

◆ timeout() [1/2]

std::chrono::seconds net::socket_base::linger::timeout ( ) const
inlinenoexcept

◆ timeout() [2/2]

void net::socket_base::linger::timeout ( std::chrono::seconds  t)
inlinenoexcept

Member Data Documentation

◆ value_

::linger net::socket_base::linger::value_
private

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