Anope IRC Services  Version 2.0
Public Member Functions | Private Attributes
MySessionService Class Reference
Inheritance diagram for MySessionService:
Inheritance graph
[legend]
Collaboration diagram for MySessionService:
Collaboration graph
[legend]

Public Member Functions

 MySessionService (Module *m)
 
ExceptionCreateException () anope_override
 
void AddException (Exception *e) anope_override
 
void DelException (Exception *e) anope_override
 
ExceptionFindException (User *u) anope_override
 
ExceptionFindException (const Anope::string &host) anope_override
 
ExceptionVectorGetExceptions () anope_override
 
void DelSession (Session *s)
 
SessionFindSession (const Anope::string &ip) anope_override
 
SessionMap::iterator FindSessionIterator (const sockaddrs &ip)
 
Session *& FindOrCreateSession (const cidr &ip)
 
SessionMapGetSessions () anope_override
 
- Public Member Functions inherited from SessionService
 SessionService (Module *m)
 
- Public Member Functions inherited from Service
 Service (Module *o, const Anope::string &t, const Anope::string &n)
 
virtual ~Service ()
 
void Register ()
 
void Unregister ()
 
- Public Member Functions inherited from Base
 Base ()
 
virtual ~Base ()
 
void AddReference (ReferenceBase *r)
 
void DelReference (ReferenceBase *r)
 

Private Attributes

SessionMap Sessions
 
Serialize::Checker
< ExceptionVector
Exceptions
 

Additional Inherited Members

- Public Types inherited from SessionService
typedef TR1NS::unordered_map
< cidr, Session *, cidr::hash
SessionMap
 
typedef std::vector< Exception * > ExceptionVector
 
- Static Public Member Functions inherited from Service
static ServiceFindService (const Anope::string &t, const Anope::string &n)
 
static std::vector< Anope::stringGetServiceKeys (const Anope::string &t)
 
static void AddAlias (const Anope::string &t, const Anope::string &n, const Anope::string &v)
 
static void DelAlias (const Anope::string &t, const Anope::string &n)
 
- Data Fields inherited from Service
Moduleowner
 
Anope::string type
 
Anope::string name
 

Detailed Description

Definition at line 38 of file os_session.cpp.

Constructor & Destructor Documentation

MySessionService::MySessionService ( Module m)
inline

Definition at line 43 of file os_session.cpp.

Member Function Documentation

void MySessionService::AddException ( Exception e)
inlinevirtual

Implements SessionService.

Definition at line 50 of file os_session.cpp.

Exception* MySessionService::CreateException ( )
inlinevirtual

Implements SessionService.

Definition at line 45 of file os_session.cpp.

void MySessionService::DelException ( Exception e)
inlinevirtual

Implements SessionService.

Definition at line 55 of file os_session.cpp.

Referenced by OSSession::OnExpireTick().

void MySessionService::DelSession ( Session s)
inline

Definition at line 96 of file os_session.cpp.

References Session::addr.

Exception* MySessionService::FindException ( User u)
inlinevirtual

Implements SessionService.

Definition at line 62 of file os_session.cpp.

References Exception::mask, cidr::match(), and Anope::Match().

Referenced by OSSession::OnUserConnect().

Exception* MySessionService::FindException ( const Anope::string host)
inlinevirtual

Implements SessionService.

Definition at line 76 of file os_session.cpp.

References Exception::mask, cidr::match(), and Anope::Match().

Session* & MySessionService::FindOrCreateSession ( const cidr ip)
inline

Definition at line 120 of file os_session.cpp.

Referenced by OSSession::OnUserConnect().

Session* MySessionService::FindSession ( const Anope::string ip)
inlinevirtual

Implements SessionService.

Definition at line 101 of file os_session.cpp.

References Anope::string::npos.

SessionMap::iterator MySessionService::FindSessionIterator ( const sockaddrs ip)
inline

Definition at line 112 of file os_session.cpp.

References sockaddrs::ipv6().

Referenced by OSSession::OnUserQuit().

ExceptionVector& MySessionService::GetExceptions ( )
inlinevirtual

Implements SessionService.

Definition at line 91 of file os_session.cpp.

References Exceptions.

Referenced by OSSession::OnExpireTick().

SessionMap& MySessionService::GetSessions ( )
inlinevirtual

Implements SessionService.

Definition at line 125 of file os_session.cpp.

References Sessions.

Referenced by OSSession::OnUserQuit().

Field Documentation

Serialize::Checker<ExceptionVector> MySessionService::Exceptions
private

Definition at line 41 of file os_session.cpp.

Referenced by GetExceptions().

SessionMap MySessionService::Sessions
private

Definition at line 40 of file os_session.cpp.

Referenced by GetSessions().


The documentation for this class was generated from the following file: