![]()  | 
  
    MySQL 9.5.0
    
   Source Code Documentation 
   | 
 
This class presents a generic interface to initialize and run a connection event loop for different types of listeners and a callback functor to call on the connection event from the listener that listens for connection. More...
#include <connection_acceptor.h>
Public Member Functions | |
| Connection_acceptor (Listener *listener) | |
| ~Connection_acceptor () | |
| bool | init_connection_acceptor () | 
| Initialize a connection acceptor.  More... | |
| void | connection_event_loop () | 
| Connection acceptor loop to accept connections from clients.  More... | |
| bool | check_and_spawn_admin_connection_handler_thread () const | 
| Spawn admin connection handler to accept admin connections from clients if create-admin-listener-thread is specified by user on commandline.  More... | |
| void | close_listener () | 
| Close the listener.  More... | |
Private Attributes | |
| Listener * | m_listener | 
This class presents a generic interface to initialize and run a connection event loop for different types of listeners and a callback functor to call on the connection event from the listener that listens for connection.
Listener type should be a class providing methods setup_listener, listen_for_ connection_event and close_listener. The Connection event callback functor object would on receiving connection event from the client to process the connection.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
Spawn admin connection handler to accept admin connections from clients if create-admin-listener-thread is specified by user on commandline.
      
  | 
  inline | 
Close the listener.
      
  | 
  inline | 
Connection acceptor loop to accept connections from clients.
      
  | 
  inline | 
Initialize a connection acceptor.
| return | true if initialization failed, else false. | 
      
  | 
  private |