The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

IdentRequestSocket Class Reference

Inheritance diagram for IdentRequestSocket:

Inheritance graph
[legend]
Collaboration diagram for IdentRequestSocket:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 IdentRequestSocket (InspIRCd *Server, User *u, const std::string &bindip)
virtual void OnConnected ()
virtual void HandleEvent (EventType et, int errornum=0)
 Process an I/O event.
void Close ()
bool HasResult ()
const char * GetResult ()
void ReadResponse ()

Private Attributes

Useruser
InspIRCdServerInstance
bool done
std::string result

Detailed Description

Definition at line 74 of file m_ident.cpp.


Constructor & Destructor Documentation

IdentRequestSocket::IdentRequestSocket InspIRCd Server,
User u,
const std::string bindip
[inline]
 

Definition at line 83 of file m_ident.cpp.

References SocketEngine::AddFd(), SocketEngine::Bind(), Close(), SocketEngine::Connect(), done, EventHandler::GetFd(), User::GetIPString(), SocketEngine::NonBlocking(), InspIRCd::SE, ServerInstance, EventHandler::SetFd(), user, and SocketEngine::WantWrite().


Member Function Documentation

void IdentRequestSocket::Close  )  [inline]
 

Definition at line 240 of file m_ident.cpp.

References SocketEngine::Close(), DEBUG, SocketEngine::DelFd(), EventHandler::GetFd(), LogManager::Log(), InspIRCd::Logs, InspIRCd::SE, ServerInstance, EventHandler::SetFd(), and SocketEngine::Shutdown().

Referenced by HandleEvent(), IdentRequestSocket(), ModuleIdent::OnUserDisconnect(), and ReadResponse().

const char* IdentRequestSocket::GetResult  )  [inline]
 

Definition at line 263 of file m_ident.cpp.

References result.

Referenced by ModuleIdent::OnCheckReady().

virtual void IdentRequestSocket::HandleEvent EventType  et,
int  errornum = 0
[inline, virtual]
 

Process an I/O event.

You MUST implement this function in your derived class, and it will be called whenever read or write events are received, depending on what your functions Readable() and Writeable() returns and wether you previously made a call to SocketEngine::WantWrite().

Parameters:
et either one of EVENT_READ for read events, and EVENT_WRITE for write events.

Implements EventHandler.

Definition at line 216 of file m_ident.cpp.

References Close(), DEBUG, done, EVENT_ERROR, EVENT_READ, EVENT_WRITE, LogManager::Log(), InspIRCd::Logs, OnConnected(), ReadResponse(), and ServerInstance.

bool IdentRequestSocket::HasResult  )  [inline]
 

Definition at line 255 of file m_ident.cpp.

References done.

Referenced by ModuleIdent::OnCheckReady().

virtual void IdentRequestSocket::OnConnected  )  [inline, virtual]
 

Definition at line 178 of file m_ident.cpp.

References DEBUG, done, EventHandler::GetFd(), LogManager::Log(), InspIRCd::Logs, InspIRCd::SE, SocketEngine::Send(), ServerInstance, and user.

Referenced by HandleEvent().

void IdentRequestSocket::ReadResponse  )  [inline]
 

Definition at line 268 of file m_ident.cpp.

References Close(), InspIRCd::Config, DEBUG, done, irc::sepstream::GetToken(), ServerLimits::IdentMax, InspIRCd::IsIdent, ServerConfig::Limits, LogManager::Log(), InspIRCd::Logs, MAXBUF, SocketEngine::Recv(), result, InspIRCd::SE, and ServerInstance.

Referenced by HandleEvent().


Member Data Documentation

bool IdentRequestSocket::done [private]
 

Definition at line 79 of file m_ident.cpp.

Referenced by HandleEvent(), HasResult(), IdentRequestSocket(), OnConnected(), and ReadResponse().

std::string IdentRequestSocket::result [private]
 

Definition at line 80 of file m_ident.cpp.

Referenced by GetResult(), and ReadResponse().

InspIRCd* IdentRequestSocket::ServerInstance [private]
 

Definition at line 78 of file m_ident.cpp.

Referenced by Close(), HandleEvent(), IdentRequestSocket(), OnConnected(), and ReadResponse().

User* IdentRequestSocket::user [private]
 

Definition at line 77 of file m_ident.cpp.

Referenced by IdentRequestSocket(), and OnConnected().


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