IRC SERVER
The goal of this project is to make you write your own IRC server.
|
Go to the documentation of this file.
5 #include "../Command.hpp"
13 _description =
"salir del servidor con mensaje de salida";
15 _example[0] =
"quit :[<Mensaje de salida>]";
16 _example[1] =
"quit :Hasta la vista, baby";
22 for (
size_t i = 0; i < clients.size(); i++)
31 std::map<std::string, Channel *>::iterator it = related_channels.begin();
32 for (; it != related_channels.end(); it++)
34 it->second->removeClientFromChannel(
_sender);
void execute()
Definition: Quit.hpp:19
std::string _description
Definition: Command.hpp:12
std::string _username
Definition: Client.hpp:27
std::string _name
Definition: Command.hpp:11
Definition: Command.hpp:7
std::vector< Client * > getRelatedClients(Client *client)
Definition: Server.hpp:93
Message * _message
Definition: Command.hpp:21
void deleteClient(int fd)
Definition: Server.hpp:153
std::map< size_t, std::string > _example
Definition: Command.hpp:16
Quit()
Definition: Quit.hpp:10
std::map< size_t, std::string > getParams(void) const
Definition: message.cpp:79
std::string _usage
Definition: Command.hpp:13
std::map< std::string, Channel * > getRelatedChannels(Client *client)
Definition: Server.hpp:114
Client * _sender
Definition: Command.hpp:19
std::string _nick
Definition: Client.hpp:26
int _fd
Definition: Client.hpp:25
std::string _servername
Definition: Client.hpp:30
Server * _server
Definition: Command.hpp:20