|
ZNC trunk
|
simple class to share common code to both TSockManager and Csock More...
#include <Csocket.h>
Public Member Functions | |
| CSockCommon () | |
| virtual | ~CSockCommon () |
| void | CleanupCrons () |
| void | CleanupFDMonitors () |
| const std::vector< CCron * > & | GetCrons () const |
| returns a const reference to the crons associated to this socket | |
| virtual void | Cron () |
| This has a garbage collecter, and is used internall to call the jobs. | |
| virtual void | AddCron (CCron *pcCron) |
| insert a newly created cron | |
| virtual void | DelCron (const CS_STRING &sName, bool bDeleteAll=true, bool bCaseSensitive=true) |
| deletes a cron by name | |
| virtual void | DelCron (uint32_t iPos) |
| delete cron by idx | |
| virtual void | DelCronByAddr (CCron *pcCron) |
| delete cron by address | |
| void | CheckFDs (const std::map< cs_sock_t, short > &miiReadyFds) |
| void | AssignFDs (std::map< cs_sock_t, short > &miiReadyFds, struct timeval *tvtimeout) |
| void | MonitorFD (CSMonitorFD *pMonitorFD) |
| add an FD set to monitor | |
Protected Attributes | |
| std::vector< CCron * > | m_vcCrons |
| std::vector< CSMonitorFD * > | m_vcMonitorFD |
simple class to share common code to both TSockManager and Csock
|
inline |
Referenced by Csock::IcuExtFromUCallback().
|
virtual |
|
virtual |
insert a newly created cron
| void CSockCommon::AssignFDs | ( | std::map< cs_sock_t, short > & | miiReadyFds, |
| struct timeval * | tvtimeout ) |
| void CSockCommon::CheckFDs | ( | const std::map< cs_sock_t, short > & | miiReadyFds | ) |
| void CSockCommon::CleanupCrons | ( | ) |
| void CSockCommon::CleanupFDMonitors | ( | ) |
|
virtual |
This has a garbage collecter, and is used internall to call the jobs.
|
virtual |
deletes a cron by name
| sName | the name of the cron |
| bDeleteAll | delete all crons that match sName |
| bCaseSensitive | use strcmp or strcasecmp |
References CS_STRING.
|
virtual |
delete cron by idx
|
virtual |
delete cron by address
|
inline |
returns a const reference to the crons associated to this socket
References m_vcCrons.
|
inline |
add an FD set to monitor
References m_vcMonitorFD.
|
protected |
Referenced by GetCrons().
|
protected |
Referenced by MonitorFD().