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


公開メンバ関数 | |
| PingCommand (Server *server) | |
| Constructs a PingCommand object. | |
| virtual | ~PingCommand () |
| Destroys the PingCommand object. | |
| virtual void | execute (Client *client, const std::vector< std::string > &args) |
| Executes the PING 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 PING command.
This command is used to test the presence of an active client or server. A client or server receiving a PING message must reply with a PONG message with the same parameter.
PingCommand.hpp の 23 行目に定義があります。
| PingCommand::PingCommand | ( | Server * | server | ) |
Constructs a PingCommand object.
| server | A pointer to the Server instance. |
PingCommand.cpp の 10 行目に定義があります。
|
virtual |
Destroys the PingCommand object.
PingCommand.cpp の 12 行目に定義があります。
|
virtual |
Executes the PING command.
| client | A pointer to the Client that issued the command. |
| args | A vector of strings containing the command arguments. args[0] should be the token to be echoed in the PONG reply. |
ICommandを実装しています。
PingCommand.cpp の 14 行目に定義があります。