|
drizzle
C++ MySQL-protocol-compatible database server
|
#include <listen_tcp.h>
Public Member Functions | |
| ListenTcp (std::string name_arg) | |
| virtual bool | getFileDescriptors (std::vector< int > &) |
| virtual const std::string | getHost () const |
| virtual in_port_t | getPort () const =0 |
| Public Member Functions inherited from drizzled::plugin::Listen | |
| Listen (std::string name_arg) | |
| std::vector< ListenCounter * > & | getListenCounters () |
| 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 |
Protected Member Functions | |
| int | acceptTcp (int fd) |
Protected Attributes | |
| uint32_t | accept_error_count |
| Protected Attributes inherited from drizzled::plugin::Listen | |
| 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 |
| Static Public Member Functions inherited from drizzled::plugin::Listen | |
| 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 () |
This class is used by client plugins to provide and manage TCP listening interfaces for new client instances.
Definition at line 33 of file listen_tcp.h.
|
inline |
Definition at line 48 of file listen_tcp.h.
|
protected |
Accept new TCP connection. This is provided to be used in getClient for derived class implementations.
| [in] | fd | File descriptor that had activity. |
| Newly | accepted file descriptor. |
Definition at line 40 of file listen_tcp.cc.
|
virtual |
This will bind the port to the host interfaces. @fds[out] Vector of file descriptors that were bound.
| true | on failure, false on success. |
Implements drizzled::plugin::Listen.
Reimplemented in drizzle_plugin::mysql_unix_socket_protocol::Protocol.
Definition at line 59 of file listen_tcp.cc.
|
virtual |
Get the host address to bind to.
| The | host address. |
Reimplemented in drizzle_plugin::ListenMySQLProtocol.
Definition at line 242 of file listen_tcp.cc.
|
pure virtual |
Get the port to bind to.
| The | port number. |
Implemented in drizzle_plugin::drizzle_protocol::ListenDrizzleProtocol, drizzle_plugin::ListenMySQLProtocol, and drizzle_plugin::mysql_unix_socket_protocol::Protocol.
|
protected |
Count of errors encountered in acceptTcp.
Definition at line 37 of file listen_tcp.h.