drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
drizzled::slot::Listen Class Reference

#include <listen.h>

Collaboration diagram for drizzled::slot::Listen:
[legend]

Public Member Functions

void add (plugin::Listen &listen_obj)
void remove (plugin::Listen &listen_obj)
bool setup (void)
plugin::Client * getClient (void) const
plugin::Client * getNullClient (void) const
void shutdown (void)

Private Attributes

std::vector< plugin::Listen * > listen_list
std::vector< plugin::Listen * > listen_fd_list
struct pollfd * fd_list
uint32_t fd_count
int wakeup_pipe [2]

Detailed Description

Class to handle all Listen plugin objects.

Definition at line 42 of file service/listen.h.

Member Function Documentation

◆ add()

void drizzled::slot::Listen::add ( plugin::Listen & listen_obj)

Add a new Listen object to the list of listeners we manage.

◆ getClient()

plugin::Client * drizzled::slot::Listen::getClient ( void ) const

Accept a new connection (Client object) on one of the configured listener interfaces.

◆ getNullClient()

plugin::Client * drizzled::slot::Listen::getNullClient ( void ) const

Some internal functions drizzled require a temporary Client object to create a valid session object, this just returns a dummy client object.

◆ remove()

void drizzled::slot::Listen::remove ( plugin::Listen & listen_obj)

Remove a Listen object from the list of listeners we manage.

◆ setup()

bool drizzled::slot::Listen::setup ( void )

Setup all configured listen plugins.

◆ shutdown()

void drizzled::slot::Listen::shutdown ( void )

Shutdown and cleanup listen loop for server shutdown.

Member Data Documentation

◆ fd_count

uint32_t drizzled::slot::Listen::fd_count
private

Definition at line 48 of file service/listen.h.

◆ fd_list

struct pollfd* drizzled::slot::Listen::fd_list
private

Definition at line 47 of file service/listen.h.

◆ listen_fd_list

std::vector<plugin::Listen *> drizzled::slot::Listen::listen_fd_list
private

Definition at line 46 of file service/listen.h.

◆ listen_list

std::vector<plugin::Listen *> drizzled::slot::Listen::listen_list
private

Definition at line 45 of file service/listen.h.

◆ wakeup_pipe

int drizzled::slot::Listen::wakeup_pipe[2]
private

Definition at line 49 of file service/listen.h.


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