|
|||
|
|||
|


Public Member Functions | |
| ModuleTestClient (InspIRCd *Me) | |
| virtual Version | GetVersion () |
| Returns the version number of a Module. | |
| virtual void | OnBackgroundTimer (time_t) |
| Called once every five seconds for background processing. | |
| virtual const char * | OnRequest (Request *request) |
| Called whenever a Request class is sent to your module by another module. | |
| virtual | ~ModuleTestClient () |
Definition at line 17 of file m_testclient.cpp.
|
|
Definition at line 23 of file m_testclient.cpp. References ModuleManager::Attach(), I_OnBackgroundTimer, I_OnRequest, InspIRCd::Modules, and Module::ServerInstance. |
|
|
Definition at line 99 of file m_testclient.cpp. |
|
|
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 31 of file m_testclient.cpp. References API_VERSION, and VF_VENDOR. |
|
|
Called once every five seconds for background processing. This timer can be used to control timed features. Its period is not accurate enough to be used as a clock, but it is gauranteed to be called at least once in any five second period, directly from the main loop of the server.
Reimplemented from Module. Definition at line 36 of file m_testclient.cpp. References DEBUG, SQLrequest::error, ModuleManager::FindFeature(), SQLrequest::id, LogManager::Log(), InspIRCd::Logs, InspIRCd::Modules, Request::Send(), Module::ServerInstance, SQLerror::Str(), and InspIRCd::Time(). |
|
|
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 56 of file m_testclient.cpp. References SQLresult::ColName(), SQLresult::Cols(), SQLfield::d, DEBUG, SQLresult::error, Request::GetId(), SQLresult::GetValue(), SQLerror::Id(), LogManager::Log(), InspIRCd::Logs, SQLresult::Rows(), Module::ServerInstance, SQL_NO_ERROR, SQLRESID, SQLSUCCESS, and SQLerror::Str(). |