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

Public Member Functions

 SASLService (Module *o)
 
 ~SASLService ()
 
void ProcessMessage (const SASL::Message &m) anope_override
 
Anope::string GetAgent () anope_override
 
SessionGetSession (const Anope::string &uid) anope_override
 
void RemoveSession (Session *sess) anope_override
 
void DeleteSessions (Mechanism *mech, bool da) anope_override
 
void SendMessage (Session *session, const Anope::string &mtype, const Anope::string &data) anope_override
 
void Succeed (Session *session, NickCore *nc) anope_override
 
void Fail (Session *session) anope_override
 
void SendMechs (Session *session) anope_override
 
void Tick (time_t) anope_override
 
- Public Member Functions inherited from SASL::Service
 Service (Module *o)
 
- 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)
 
- Public Member Functions inherited from Timer
 Timer (long time_from_now, time_t now=Anope::CurTime, bool repeating=false)
 
 Timer (Module *creator, long time_from_now, time_t now=Anope::CurTime, bool repeating=false)
 
virtual ~Timer ()
 
void SetTimer (time_t t)
 
time_t GetTimer () const
 
bool GetRepeat () const
 
void SetSecs (time_t t)
 
long GetSecs () const
 
time_t GetSetTime () const
 
ModuleGetOwner () const
 

Private Attributes

std::map< Anope::string,
SASL::Session * > 
sessions
 

Additional Inherited Members

- 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 110 of file m_sasl.cpp.

Constructor & Destructor Documentation

SASLService::SASLService ( Module o)
inline

Definition at line 115 of file m_sasl.cpp.

SASLService::~SASLService ( )
inline

Definition at line 117 of file m_sasl.cpp.

Member Function Documentation

void SASLService::DeleteSessions ( Mechanism mech,
bool  da 
)
inlinevirtual

Implements SASL::Service.

Definition at line 186 of file m_sasl.cpp.

void SASLService::Fail ( Session session)
inlinevirtual

Implements SASL::Service.

Definition at line 217 of file m_sasl.cpp.

Anope::string SASLService::GetAgent ( )
inlinevirtual

Implements SASL::Service.

Definition at line 164 of file m_sasl.cpp.

References Service::owner.

Session* SASLService::GetSession ( const Anope::string uid)
inlinevirtual

Implements SASL::Service.

Definition at line 173 of file m_sasl.cpp.

void SASLService::ProcessMessage ( const SASL::Message m)
inlinevirtual
void SASLService::RemoveSession ( Session sess)
inlinevirtual

Implements SASL::Service.

Definition at line 181 of file m_sasl.cpp.

void SASLService::SendMechs ( Session session)
inlinevirtual

Implements SASL::Service.

Definition at line 222 of file m_sasl.cpp.

References Anope::string::empty(), Service::GetServiceKeys(), and Anope::string::substr().

void SASLService::SendMessage ( Session session,
const Anope::string mtype,
const Anope::string data 
)
inlinevirtual
void SASLService::Succeed ( Session session,
NickCore nc 
)
inlinevirtual

Implements SASL::Service.

Definition at line 211 of file m_sasl.cpp.

References IRCD, and IRCDProto::SendSVSLogin().

void SASLService::Tick ( time_t  ctime)
inlinevirtual

Called when the timer ticks This should be overridden with something useful

Implements Timer.

Definition at line 232 of file m_sasl.cpp.

References SASL::Session::created, Anope::CurTime, and SASL::Session::mech.

Field Documentation

std::map<Anope::string, SASL::Session *> SASLService::sessions
private

Definition at line 112 of file m_sasl.cpp.


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