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

Implements the USER command. [詳解]

#include <UserCommand.hpp>

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

公開メンバ関数

 UserCommand (Server *server)
 Constructs a UserCommand object.
 
void execute (Client *client, const std::vector< std::string > &args)
 Executes the USER 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 USER command.

This command is used to specify the username and real name of a new client. It is a crucial step in the client registration process, typically following the PASS command and paired with the NICK command to fully register a client.

UserCommand.hpp20 行目に定義があります。

構築子と解体子

◆ UserCommand()

UserCommand::UserCommand ( Server server)

Constructs a UserCommand object.

引数
serverA pointer to the Server instance.

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

関数詳解

◆ execute()

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

Executes the USER command.

引数
clientA pointer to the Client that issued the command.
argsA vector of strings containing the command arguments. args[0] should be the username. args[1], args[2] are unused (host mode, server name). args[3] should be the real name (may contain spaces, prefixed with ':').

ICommandを実装しています。

UserCommand.cpp32 行目に定義があります。


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