MySQL 8.4.0
Source Code Documentation
net::ip::tcp Class Reference

TCP protocol. More...

#include <internet.h>

Public Types

using endpoint = basic_endpoint< tcp >
 
using resolver = basic_resolver< tcp >
 
using socket = basic_stream_socket< tcp >
 
using acceptor = basic_socket_acceptor< tcp >
 

Public Member Functions

constexpr int family () const noexcept
 
constexpr int type () const noexcept
 
constexpr int protocol () const noexcept
 

Static Public Member Functions

static constexpr tcp v4 () noexcept
 
static constexpr tcp v6 () noexcept
 

Private Member Functions

constexpr tcp (int family)
 

Private Attributes

int family_
 

Detailed Description

TCP protocol.

  • endpoint
  • socket options
net::ip::tcp::no_delay opt;
if (0 == setsockopt(sock, opt.level(), opt.name(), opt.data(), opt.size())) {
opt.resize();
}
static MYSQL * sock
Definition: mysqlcheck.cc:57
stdx::expected< void, error_type > setsockopt(native_handle_type native_handle, int level, int optname, const void *optval, socklen_t optlen)
Definition: socket.h:158

Member Typedef Documentation

◆ acceptor

◆ endpoint

◆ resolver

◆ socket

Constructor & Destructor Documentation

◆ tcp()

constexpr net::ip::tcp::tcp ( int  family)
inlineexplicitconstexprprivate

Member Function Documentation

◆ family()

constexpr int net::ip::tcp::family ( ) const
inlineconstexprnoexcept

◆ protocol()

constexpr int net::ip::tcp::protocol ( ) const
inlineconstexprnoexcept

◆ type()

constexpr int net::ip::tcp::type ( ) const
inlineconstexprnoexcept

◆ v4()

static constexpr tcp net::ip::tcp::v4 ( )
inlinestaticconstexprnoexcept

◆ v6()

static constexpr tcp net::ip::tcp::v6 ( )
inlinestaticconstexprnoexcept

Member Data Documentation

◆ family_

int net::ip::tcp::family_
private

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