コード例 #1
0
 public void JoinToRoom(TcpClient client, string username, Room room)
 {
     Chat.AddNewRoom(room);
     Chat.AddUserToRoom(username);
     Chat.AddTcpClient(client);
     Chat.AddUserRoomPair(username, room.Name);
     Chat.AddUserSocketPair(username, client);
 }