MySQL 8.0.40
Source Code Documentation
|
This class abstract a shared memory listener to listen for connection events that connect via the shared memory. More...
#include <shared_memory_connection.h>
Public Member Functions | |
Shared_mem_listener (const std::string *shared_memory_base_name) | |
Constructor to create shared memory listener. More... | |
bool | setup_listener () |
Set up a listener. More... | |
Channel_info * | listen_for_connection_event () |
The body of the event loop that listen for connection events from clients. More... | |
bool | check_and_spawn_admin_connection_handler_thread () const |
Spawn admin connection handler thread if separate thread is required to accept admin connections. More... | |
void | close_listener () |
Close the listener. More... | |
Private Member Functions | |
void | close_shared_mem () |
Private Attributes | |
std::string | m_shared_mem_name |
HANDLE | m_connect_file_map |
char * | m_connect_map |
HANDLE | m_connect_named_mutex |
HANDLE | m_event_connect_request |
HANDLE | m_event_connect_answer |
SECURITY_ATTRIBUTES * | m_sa_event |
SECURITY_ATTRIBUTES * | m_sa_mapping |
SECURITY_ATTRIBUTES * | m_sa_mutex |
int | m_connect_number |
char * | m_suffix_pos |
char * | m_temp_buffer |
HANDLE | m_handle_client_file_map |
char * | m_handle_client_map |
HANDLE | m_event_client_wrote |
HANDLE | m_event_client_read |
HANDLE | m_event_server_wrote |
HANDLE | m_event_server_read |
HANDLE | m_event_conn_closed |
This class abstract a shared memory listener to listen for connection events that connect via the shared memory.
|
inline |
Constructor to create shared memory listener.
shared_memory_base_name | pointer to shared memory base name. |
|
inline |
Spawn admin connection handler thread if separate thread is required to accept admin connections.
Currently we do not support shared memory admin connections. Hence this method is noop.
TODO: Implement for supporting admin connections via shared memory channel.
void Shared_mem_listener::close_listener | ( | ) |
Close the listener.
|
private |
Channel_info * Shared_mem_listener::listen_for_connection_event | ( | ) |
The body of the event loop that listen for connection events from clients.
Channel_info | Channel_info object abstracting the connected client details for processing this connection. |
bool Shared_mem_listener::setup_listener | ( | ) |
Set up a listener.
false | listener listener has been setup successfully to listen for connect events true failure in setting up the listener. |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |