🐛 serveur n'arrive pas à recevoir dans le port unique, on va resoudre
continuous-integration/drone/push Build is failing Details

ServerDeployement
Bruno DA COSTA CUNHA 2 years ago
parent e31c68d90b
commit dcaa46107c

@ -110,7 +110,7 @@ public class PongServer
// Assign a unique port to the client
IPEndPoint clientEndPoint = new IPEndPoint(IPAddress.Any, nextPort);
IPEndPoint clientEndPoint = new IPEndPoint(IPAddress.Any, room.Port);
UdpClient clientSocket = new UdpClient(clientEndPoint);
room.playerJoin = new KeyValuePair<Player, UdpClient>(data.Data, clientSocket);
@ -125,7 +125,6 @@ public class PongServer
room.PropertyChanged += room.OnReadyChanged;
room.NbPlayer++;
}
}
Loading…
Cancel
Save