🐛 testing avec le client

ServerDeployement
Bruno DA COSTA CUNHA 2 years ago
parent f667227bcd
commit 63496281b4

@ -14,7 +14,7 @@ class Program
static void StartClient() static void StartClient()
{ {
//IPEndPoint serverEndPoint = new IPEndPoint(Dns.GetHostAddresses("hulivet.fr").FirstOrDefault(), 3131); //IPEndPoint serverEndPoint = new IPEndPoint(Dns.GetHostAddresses("hulivet.fr").FirstOrDefault(), 3131);
IPEndPoint serverEndPoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 3131); IPEndPoint serverEndPoint = new IPEndPoint(IPAddress.Parse("192.168.205.58"), 3131);
UdpClient client = new UdpClient(); UdpClient client = new UdpClient();
// Send connection message to server // Send connection message to server

@ -8,9 +8,13 @@ namespace Shared.DTO
{ {
public enum Action public enum Action
{ {
Join,
Host, Host,
Connect, Connect,
Join, End,
End
SendPlayer,
RecivePlayer,
SendEntities
} }
} }

Loading…
Cancel
Save