Closed alsksssass closed 1 month ago
IRC 프로토콜의 JOIN 명령어를 구현하여 사용자가 채널에 참여할 수 있도록 합니다.
class Server { public: std::vector<std::string> ParseComma(const std::string& str); bool CheckChannelInServer(const std::string& channel_name); std::string GetUserListInChannel(const std::string& channel_name); // ... };
class Client { public: bool CheckPossibleToJoin(); // ... };
class Channel { public: void AddUserInChannel(const std::string& nickname); std::string GetTopic(); std::string GetTopicEditTime(); // ... };
const std::string& str
std::vector<std::string>
const std::string& channel_name
bool
IRCChannel *
std::string
const std::string& nickname
void
서버클래스에서 채널을 생성하여 리스트에 추가하는 메소드 작성
IRC JOIN 명령어 코딩 시나리오
목적
IRC 프로토콜의 JOIN 명령어를 구현하여 사용자가 채널에 참여할 수 있도록 합니다.
에러 처리
코드 진행 순서
추가해야 할 메소드
Server 클래스
Client 클래스
Channel 클래스
메소드 설명
Context::ParseComma
const std::string& str
std::vector<std::string>
Server::IsChannelInList
const std::string& channel_name
bool
Server::GetChannel
const std::string& channel_name
IRCChannel *
Server::GetUserListInChannel
const std::string& channel_name
std::string
(353, 366 기준으로 모든 정보를 포함한 단일 문자열)Client::CheckPossibleToJoin
bool
Channel::AddUserInChannel
const std::string& nickname
void
Channel::GetTopic
std::string
Channel::GetTopicEditTime
std::string
주의사항
향후 개선 사항