IRC SERVER
The goal of this project is to make you write your own IRC server.
Client Class Reference

#include <Client.hpp>

Collaboration diagram for Client:
Collaboration graph

Public Member Functions

 Client (int &fd, std::string host, std::string servername, std::string version)
 
 ~Client ()
 
void message (char const *message)
 
void message (std::string const message)
 
void read (void)
 
void disconnect (void)
 
void ban (void)
 
std::vector< std::string > readConfigFile (char const *filename)
 
std::string getSupportString (void)
 
void authenticate (void)
 
void loginFail (void)
 
std::vector< MessagemessagesSent () const
 
std::vector< MessagemessagesReceived () const
 
bool isAuthenticated (void) const
 
bool canPerformPassCommand (void) const
 
const std::string getNick (void) const
 
const std::string getUsername (void) const
 
const std::string getRealname (void) const
 
const std::string getHost (void) const
 
const std::string getUserId (void) const
 
const std::string getServername (void) const
 
bool isInvisible (void)
 
bool isOperator (void)
 
bool isRegistered (void)
 
void setNick (std::string const &nick)
 
void setUsername (std::string const &username)
 
void setRealName (std::string const &realname)
 
bool hasMode (UserMode mode)
 
void addMode (UserMode mode)
 

Public Attributes

int _fd
 
std::string _nick
 
std::string _username
 
std::string _realname
 
std::string _host
 
std::string _servername
 
std::string _serverversion
 
std::vector< Message_messagesSent
 
std::vector< Message_messagesReceived
 
bool _is_authenticated
 
bool _is_passLogged
 
bool _is_ope
 
const int _maxChannels
 
int _attempts
 
ClientStatus _status
 
Message_message
 
std::vector< UserMode_modes
 

Constructor & Destructor Documentation

◆ Client()

Client::Client ( int &  fd,
std::string  host,
std::string  servername,
std::string  version 
)
inline

◆ ~Client()

Client::~Client ( )
inline

Member Function Documentation

◆ addMode()

void Client::addMode ( UserMode  mode)
inline
Here is the call graph for this function:

◆ authenticate()

void Client::authenticate ( void  )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ban()

void Client::ban ( void  )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ canPerformPassCommand()

bool Client::canPerformPassCommand ( void  ) const
inline

◆ disconnect()

void Client::disconnect ( void  )
inline
Here is the caller graph for this function:

◆ getHost()

const std::string Client::getHost ( void  ) const
inline
Here is the caller graph for this function:

◆ getNick()

const std::string Client::getNick ( void  ) const
inline
Here is the caller graph for this function:

◆ getRealname()

const std::string Client::getRealname ( void  ) const
inline
Here is the caller graph for this function:

◆ getServername()

const std::string Client::getServername ( void  ) const
inline

◆ getSupportString()

std::string Client::getSupportString ( void  )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getUserId()

const std::string Client::getUserId ( void  ) const
inline
Here is the caller graph for this function:

◆ getUsername()

const std::string Client::getUsername ( void  ) const
inline
Here is the caller graph for this function:

◆ hasMode()

bool Client::hasMode ( UserMode  mode)
inline
Here is the caller graph for this function:

◆ isAuthenticated()

bool Client::isAuthenticated ( void  ) const
inline
Here is the caller graph for this function:

◆ isInvisible()

bool Client::isInvisible ( void  )
inline
Here is the call graph for this function:

◆ isOperator()

bool Client::isOperator ( void  )
inline
Here is the call graph for this function:

◆ isRegistered()

bool Client::isRegistered ( void  )
inline
Here is the call graph for this function:

◆ loginFail()

void Client::loginFail ( void  )
inline
Here is the call graph for this function:

◆ message() [1/2]

void Client::message ( char const *  message)
Here is the caller graph for this function:

◆ message() [2/2]

void Client::message ( std::string const  message)
Here is the call graph for this function:

◆ messagesReceived()

std::vector<Message> Client::messagesReceived ( ) const
inline

◆ messagesSent()

std::vector<Message> Client::messagesSent ( ) const
inline

◆ read()

void Client::read ( void  )

◆ readConfigFile()

std::vector<std::string> Client::readConfigFile ( char const *  filename)
inline
Here is the caller graph for this function:

◆ setNick()

void Client::setNick ( std::string const &  nick)
inline
Here is the caller graph for this function:

◆ setRealName()

void Client::setRealName ( std::string const &  realname)
inline
Here is the caller graph for this function:

◆ setUsername()

void Client::setUsername ( std::string const &  username)
inline
Here is the caller graph for this function:

Member Data Documentation

◆ _attempts

int Client::_attempts

◆ _fd

int Client::_fd

◆ _host

std::string Client::_host

◆ _is_authenticated

bool Client::_is_authenticated

◆ _is_ope

bool Client::_is_ope

◆ _is_passLogged

bool Client::_is_passLogged

◆ _maxChannels

const int Client::_maxChannels

◆ _message

Message* Client::_message

◆ _messagesReceived

std::vector<Message> Client::_messagesReceived

◆ _messagesSent

std::vector<Message> Client::_messagesSent

◆ _modes

std::vector<UserMode> Client::_modes

◆ _nick

std::string Client::_nick

◆ _realname

std::string Client::_realname

◆ _servername

std::string Client::_servername

◆ _serverversion

std::string Client::_serverversion

◆ _status

ClientStatus Client::_status

◆ _username

std::string Client::_username

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