MySQL 9.1.0
Source Code Documentation
|
TCP_socket class represents the TCP sockets abstraction. More...
Public Member Functions | |
TCP_socket (std::string bind_addr_str, std::string network_namespace_str, uint tcp_port, uint backlog, uint port_timeout) | |
Constructor that takes tcp port and ip address string and other related parameters to set up listener tcp to listen for connection events. More... | |
MYSQL_SOCKET | get_listener_socket () |
Set up a listener to listen for connection events. More... | |
Private Member Functions | |
MYSQL_SOCKET | create_socket (const struct addrinfo *addrinfo_list, int addr_family, struct addrinfo **use_addrinfo) |
Private Attributes | |
std::string | m_bind_addr_str |
std::string | m_network_namespace |
uint | m_tcp_port |
uint | m_backlog |
uint | m_port_timeout |
TCP_socket class represents the TCP sockets abstraction.
It provides the get_listener_socket that setup a TCP listener socket to listen.
|
inline |
Constructor that takes tcp port and ip address string and other related parameters to set up listener tcp to listen for connection events.
bind_addr_str | ip address as string value. |
network_namespace_str | network namespace as string value |
tcp_port | tcp port number. |
backlog | backlog specifying length of pending connection queue. |
port_timeout | port timeout value |
|
inlineprivate |
|
inline |
Set up a listener to listen for connection events.
valid | socket if successful else MYSQL_INVALID_SOCKET on failure. |
|
private |
|
private |
|
private |
|
private |
|
private |