Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command Class 설명 #5

Open
ppparkta opened this issue Nov 21, 2023 · 0 comments
Open

Command Class 설명 #5

ppparkta opened this issue Nov 21, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@ppparkta
Copy link
Collaborator

ppparkta commented Nov 21, 2023

Command 클래스 설명

명령어는 Command 클래스에서 구현해주세요

  • fd: 메시지 입력한 클라이언트 fd
  • original_message: 전체 메시지
  • command: 메시지 중 명령어 부분
  • parameters: 메시지에 대한 파라미터(벡터)
  • trailing: :뒤에 오는 메시지
class Command {
	private:
		int fd;
		std::string original_message;
		std::string command;
		std::vector<std::string> parameters;
		std::string trailing;
	public:
		...
		// 여기서부터 커맨드 추가
		void command_pass();
};
@ppparkta ppparkta added the documentation Improvements or additions to documentation label Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant