|
drizzle
C++ MySQL-protocol-compatible database server
|
#include <listen.h>
Public Member Functions | |
| Listen (std::string name_arg) | |
| std::vector< ListenCounter * > & | getListenCounters () |
| virtual bool | getFileDescriptors (std::vector< int > &fds)=0 |
| virtual plugin::Client * | getClient (int fd)=0 |
| Public Member Functions inherited from drizzled::plugin::Plugin | |
| Plugin (const std::string &name, const std::string &type_name) | |
| virtual void | shutdownPlugin () |
| virtual void | prime () |
| virtual void | startup (drizzled::Session &) |
| void | activate () |
| void | deactivate () |
| bool | isActive () const |
| const std::string & | getName () const |
| void | setModule (module::Module *module) |
| const std::string & | getTypeName () const |
| virtual bool | removeLast () const |
| const std::string & | getModuleName () const |
Static Public Member Functions | |
| static ListenVector & | getListenProtocols () |
| static bool | addPlugin (Listen &) |
| static void | removePlugin (Listen &) |
| static bool | setup (void) |
| static plugin::Client * | serveConnections () |
| static plugin::Client * | getNullClient () |
| static void | shutdown () |
Protected Attributes | |
| std::vector< ListenCounter * > | counters |
Additional Inherited Members | |
| Public Types inherited from drizzled::plugin::Plugin | |
| typedef std::pair< const std::string, const std::string > | map_key |
| typedef std::unique_ptr< plugin::Plugin, deleter_fn > | owned_ptr |
| typedef std::map< const map_key, owned_ptr > | map |
| typedef std::vector< Plugin * > | vector |
This class is used by client plugins to provide and manage the listening interface for new client instances.
Definition at line 36 of file plugin/listen.h.
|
inlineexplicit |
Definition at line 41 of file plugin/listen.h.
|
inlinevirtual |
Definition at line 45 of file plugin/listen.h.
|
static |
|
pure virtual |
This provides a new Client object that can be used by a Session.
| [in] | fd | File descriptor that had activity. |
Implemented in drizzle_plugin::drizzle_protocol::ListenDrizzleProtocol, drizzle_plugin::ListenMySQLProtocol, and drizzle_plugin::mysql_unix_socket_protocol::Protocol.
|
pure virtual |
This provides a list of file descriptors to watch that will trigger new Client instances. When activity is detected on one of the returned file descriptors, getClient will be called with the file descriptor. @fds[out] Vector of file descriptors to watch for activity.
| true | on failure, false on success. |
Implemented in drizzle_plugin::mysql_unix_socket_protocol::Protocol, and drizzled::plugin::ListenTcp.
|
inline |
Definition at line 56 of file plugin/listen.h.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
protected |
Definition at line 39 of file plugin/listen.h.