コード例 #1
0
 private void GetFriendsListener()
 {
     getFriendsListener = new TcpListener(IPAddress.Parse(GetIpAddress()), 9000);
     try
     {
         getFriendsListener.Start();
         while (true)
         {
             Socket connected = getFriendsListener.AcceptSocket();
             FriendListHandler handler = new FriendListHandler(connected);
             handler.StartHandling();
         }
     }
     catch (Exception ex)
     {
     }
 }