|
ft_irc 1.0
|
Implements the QUIT command. [詳解]
#include <QuitCommand.hpp>


公開メンバ関数 | |
| QuitCommand (Server *server) | |
| Constructs a QuitCommand object. | |
| ~QuitCommand () | |
| Destroys the QuitCommand object. | |
| void | execute (Client *client, const std::vector< std::string > &args) |
| Executes the QUIT command. | |
基底クラス ICommand に属する継承公開メンバ関数 | |
| ICommand (Server *server) | |
| Constructs an ICommand object, associating it with a server instance. | |
| virtual | ~ICommand () |
| Virtual destructor for ICommand, ensuring proper cleanup of derived classes. | |
その他の継承メンバ | |
基底クラス ICommand に属する継承限定公開変数類 | |
| Server * | _server |
| Pointer to the IRC server instance. | |
Implements the QUIT command.
This command allows a client to disconnect from the server. It broadcasts a quit message to all channels the client is in and marks the client for disconnection.
QuitCommand.hpp の 20 行目に定義があります。
| QuitCommand::QuitCommand | ( | Server * | server | ) |
Constructs a QuitCommand object.
| server | A pointer to the Server instance. |
QuitCommand.cpp の 15 行目に定義があります。
| QuitCommand::~QuitCommand | ( | ) |
Destroys the QuitCommand object.
QuitCommand.cpp の 17 行目に定義があります。
|
virtual |
Executes the QUIT command.
| client | A pointer to the Client that issued the command. |
| args | A vector of strings containing the command arguments. args[0] (optional) should be the quit message. |
ICommandを実装しています。
QuitCommand.cpp の 19 行目に定義があります。