MySQL 8.0.40
Source Code Documentation
AcceptingEndpointTcpSocket Class Reference

#include <mysql_routing.h>

Inheritance diagram for AcceptingEndpointTcpSocket:
[legend]

Public Member Functions

 AcceptingEndpointTcpSocket (net::io_context &io_ctx, const std::string &parent_routing_name, const std::string &address, uint16_t port)
 
stdx::expected< void, std::error_code > setup () override
 
stdx::expected< void, std::error_code > cancel () override
 
bool is_open () const override
 
void start (MySQLRouting *r, std::list< IoThread > &, WaitableMonitor< Nothing > &waitable) override
 
std::string name () override
 
- Public Member Functions inherited from AcceptingEndpoint
 AcceptingEndpoint (net::io_context &io_ctx, const std::string &parent_routing_name)
 
virtual ~AcceptingEndpoint ()
 

Private Attributes

net::ip::tcp::acceptor service_
 
net::ip::tcp::endpoint service_endpoint_
 
std::string address_
 
uint16_t port_
 

Additional Inherited Members

- Protected Attributes inherited from AcceptingEndpoint
net::io_contextio_ctx_
 
std::string parent_routing_name_
 

Constructor & Destructor Documentation

◆ AcceptingEndpointTcpSocket()

AcceptingEndpointTcpSocket::AcceptingEndpointTcpSocket ( net::io_context io_ctx,
const std::string &  parent_routing_name,
const std::string &  address,
uint16_t  port 
)

Member Function Documentation

◆ cancel()

stdx::expected< void, std::error_code > AcceptingEndpointTcpSocket::cancel ( )
overridevirtual

Implements AcceptingEndpoint.

◆ is_open()

bool AcceptingEndpointTcpSocket::is_open ( ) const
overridevirtual

Implements AcceptingEndpoint.

◆ name()

std::string AcceptingEndpointTcpSocket::name ( )
overridevirtual

Implements AcceptingEndpoint.

◆ setup()

stdx::expected< void, std::error_code > AcceptingEndpointTcpSocket::setup ( )
overridevirtual

Implements AcceptingEndpoint.

◆ start()

void AcceptingEndpointTcpSocket::start ( MySQLRouting r,
std::list< IoThread > &  io_threads,
WaitableMonitor< Nothing > &  waitable 
)
overridevirtual

Implements AcceptingEndpoint.

Member Data Documentation

◆ address_

std::string AcceptingEndpointTcpSocket::address_
private

◆ port_

uint16_t AcceptingEndpointTcpSocket::port_
private

◆ service_

net::ip::tcp::acceptor AcceptingEndpointTcpSocket::service_
private

◆ service_endpoint_

net::ip::tcp::endpoint AcceptingEndpointTcpSocket::service_endpoint_
private

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