|
|||
|
|||
|
Inheritance diagram for ModuleSQL:


Public Member Functions | |
| ModuleSQL (InspIRCd *Me) | |
| ~ModuleSQL () | |
| unsigned long | NewID () |
| const char * | OnRequest (Request *request) |
| Called whenever a Request class is sent to your module by another module. | |
| void | OnRehash (User *user, const std::string ¶meter) |
| Called on rehash. | |
| Version | GetVersion () |
| Returns the version number of a Module. | |
Public Attributes | |
| ConfigReader * | Conf |
| InspIRCd * | PublicServerInstance |
| int | currid |
| bool | rehashing |
| DispatcherThread * | Dispatcher |
| Mutex * | QueueMutex |
| Mutex * | ResultsMutex |
| Mutex * | LoggingMutex |
| Mutex * | ConnMutex |
Definition at line 79 of file m_mysql.cpp.
|
|
|
Definition at line 795 of file m_mysql.cpp. References ClearAllConnections(), Conf, ConnMutex, Dispatcher, ModuleManager::DoneWithInterface(), LoggingMutex, InspIRCd::Modules, QueueMutex, ResultsMutex, Module::ServerInstance, ModuleManager::UnpublishFeature(), and ModuleManager::UnpublishInterface(). |
|
|
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 855 of file m_mysql.cpp. References API_VERSION, VF_SERVICEPROVIDER, and VF_VENDOR. |
|
|
Definition at line 809 of file m_mysql.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 850 of file m_mysql.cpp. References rehashing. |
|
|
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 816 of file m_mysql.cpp. References Connections, ConnMutex, SQLrequest::dbid, SQLrequest::error, Request::GetId(), SQLerror::Id(), SQLrequest::id, Mutex::Lock(), NewID(), QueueMutex, SQL_BAD_DBID, SQLREQID, SQLSUCCESS, and Mutex::Unlock(). |
|
|
Definition at line 83 of file m_mysql.cpp. Referenced by ModuleSQL(), DispatcherThread::Run(), and ~ModuleSQL(). |
|
|
Definition at line 91 of file m_mysql.cpp. Referenced by LoadDatabases(), ModuleSQL(), Notifier::OnDataReady(), OnRequest(), DispatcherThread::Run(), and ~ModuleSQL(). |
|
|
Definition at line 85 of file m_mysql.cpp. Referenced by ModuleSQL(), and NewID(). |
|
|
Definition at line 87 of file m_mysql.cpp. Referenced by ModuleSQL(), and ~ModuleSQL(). |
|
|
Definition at line 90 of file m_mysql.cpp. Referenced by ConnectDatabases(), ModuleSQL(), and ~ModuleSQL(). |
|
|
Definition at line 84 of file m_mysql.cpp. Referenced by ModuleSQL(), and DispatcherThread::Run(). |
|
|
Definition at line 88 of file m_mysql.cpp. Referenced by SQLConnection::DoLeadingQuery(), ModuleSQL(), OnRequest(), DispatcherThread::Run(), and ~ModuleSQL(). |
|
|
Definition at line 86 of file m_mysql.cpp. Referenced by OnRehash(), and DispatcherThread::Run(). |
|
|
Definition at line 89 of file m_mysql.cpp. Referenced by SQLConnection::DoLeadingQuery(), ModuleSQL(), Notifier::OnDataReady(), and ~ModuleSQL(). |