ft_irc 1.0
読み取り中…
検索中…
一致する文字列を見つけられません
PongCommand クラス

Implements the PONG command. [詳解]

#include <PongCommand.hpp>

PongCommand の継承関係図
Inheritance graph
PongCommand 連携図
Collaboration graph

公開メンバ関数

 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.hpp22 行目に定義があります。

構築子と解体子

◆ PongCommand()

PongCommand::PongCommand ( Server server)

Constructs a PongCommand object.

引数
serverA pointer to the Server instance.

PongCommand.cpp10 行目に定義があります。

◆ ~PongCommand()

PongCommand::~PongCommand ( )
virtual

Destroys the PongCommand object.

PongCommand.cpp12 行目に定義があります。

関数詳解

◆ execute()

void PongCommand::execute ( Client client,
const std::vector< std::string > &  args 
)
virtual

Executes the PONG command.

引数
clientA pointer to the Client that issued the command.
argsA vector of strings containing the command arguments. (Typically, args[0] would be the token echoed from the PING).

ICommandを実装しています。

PongCommand.cpp14 行目に定義があります。


このクラス詳解は次のファイルから抽出されました: