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


公開メンバ関数 | |
| PongCommand (Server *server) | |
| Constructs a PongCommand object. | |
| virtual | ~PongCommand () |
| Destroys the PongCommand object. | |
| virtual void | execute (Client *client, const std::vector< std::string > &args) |
| Executes the PONG 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 PONG command.
This command is a reply to a PING message and indicates that the client is still active. Receiving a PONG updates the client's activity timestamp and resets the last PING sent time.
PongCommand.hpp の 22 行目に定義があります。
| PongCommand::PongCommand | ( | Server * | server | ) |
Constructs a PongCommand object.
| server | A pointer to the Server instance. |
PongCommand.cpp の 10 行目に定義があります。
|
virtual |
Destroys the PongCommand object.
PongCommand.cpp の 12 行目に定義があります。
|
virtual |
Executes the PONG command.
| client | A pointer to the Client that issued the command. |
| args | A vector of strings containing the command arguments. (Typically, args[0] would be the token echoed from the PING). |
ICommandを実装しています。
PongCommand.cpp の 14 行目に定義があります。