|
|||
|
|||
|


Public Member Functions | |
| ModuleSQLite3 (InspIRCd *Me) | |
| virtual | ~ModuleSQLite3 () |
| void | SendQueue () |
| void | ClearQueue () |
| bool | HasHost (const SQLhost &host) |
| bool | HostInConf (const SQLhost &h) |
| void | ReadConf () |
| void | AddConn (const SQLhost &hi) |
| void | ClearOldConnections () |
| void | ClearAllConnections () |
| virtual void | OnRehash (User *user, const std::string ¶meter) |
| Called on rehash. | |
| virtual const char * | OnRequest (Request *request) |
| Called whenever a Request class is sent to your module by another module. | |
| unsigned long | NewID () |
| virtual Version | GetVersion () |
| Returns the version number of a Module. | |
Private Attributes | |
| ConnMap | connections |
| unsigned long | currid |
Definition at line 475 of file m_sqlite3.cpp.
|
|
|
Definition at line 516 of file m_sqlite3.cpp. References InspIRCd::BufferedSocketCull(), ClearAllConnections(), ClearQueue(), SocketEngine::DelFd(), ModuleManager::DoneWithInterface(), InspIRCd::Modules, QueueFD, InspIRCd::SE, Module::ServerInstance, ModuleManager::UnpublishFeature(), and ModuleManager::UnpublishInterface(). |
|
|
Definition at line 610 of file m_sqlite3.cpp. References connections, DEFAULT, HasHost(), SQLhost::id, LogManager::Log(), InspIRCd::Logs, and Module::ServerInstance. Referenced by ReadConf(). |
|
|
Definition at line 640 of file m_sqlite3.cpp. References connections. Referenced by ~ModuleSQLite3(). |
|
|
Definition at line 625 of file m_sqlite3.cpp. References connections, and HostInConf(). Referenced by ReadConf(). |
|
|
Definition at line 551 of file m_sqlite3.cpp. References connections. Referenced by ~ModuleSQLite3(). |
|
|
Returns the version number of a Module. The method should return a Version object with its version information assigned via Version::Version Reimplemented from Module. Definition at line 684 of file m_sqlite3.cpp. References API_VERSION, VF_SERVICEPROVIDER, and VF_VENDOR. |
|
|
Definition at line 559 of file m_sqlite3.cpp. References connections. Referenced by AddConn(), and ReadConf(). |
|
|
Definition at line 569 of file m_sqlite3.cpp. References conf, ConfigReader::Enumerate(), SQLhost::host, SQLhost::id, SQLhost::name, SQLhost::pass, SQLhost::port, ConfigReader::ReadInteger(), ConfigReader::ReadValue(), Module::ServerInstance, and SQLhost::user. Referenced by ClearOldConnections(). |
|
|
Definition at line 676 of file m_sqlite3.cpp. References currid. Referenced by OnRequest(). |
|
||||||||||||
|
Called on rehash. This method is called prior to a /REHASH or when a SIGHUP is received from the operating system. You should use it to reload any files so that your module keeps in step with the rest of the application. If a parameter is given, the core has done nothing. The module receiving the event can decide if this parameter has any relevence to it.
Reimplemented from Module. Definition at line 650 of file m_sqlite3.cpp. References ReadConf(). |
|
|
Called whenever a Request class is sent to your module by another module. Please see the documentation of Request::Send() for further information. The Request sent can always be assumed to be non-NULL, you should not change the request object or its data. Your method may return arbitary data in the char* result which the requesting module may be able to use for pre-determined purposes (e.g. the results of an SQL query, etc).
Reimplemented from Module. Definition at line 655 of file m_sqlite3.cpp. References connections, SQLrequest::dbid, SQLrequest::error, Request::GetId(), SQLerror::Id(), SQLrequest::id, NewID(), SQL_BAD_DBID, SQLREQID, and SQLSUCCESS. |
|
|
Definition at line 587 of file m_sqlite3.cpp. References AddConn(), ClearOldConnections(), conf, ConfigReader::Enumerate(), HasHost(), SQLhost::host, SQLhost::id, SQLhost::name, SQLhost::pass, SQLhost::port, ConfigReader::ReadInteger(), ConfigReader::ReadValue(), Module::ServerInstance, and SQLhost::user. Referenced by ModuleSQLite3(), and OnRehash(). |
|
|
Definition at line 543 of file m_sqlite3.cpp. References connections. |
|
|
Definition at line 478 of file m_sqlite3.cpp. Referenced by AddConn(), ClearAllConnections(), ClearOldConnections(), ClearQueue(), HasHost(), OnRequest(), and SendQueue(). |
|
|
Definition at line 479 of file m_sqlite3.cpp. Referenced by NewID(). |