diff --git a/TcpDotNet.ClientIntegrationTest/Program.cs b/TcpDotNet.ClientIntegrationTest/Program.cs index 0ecd968..9a732c5 100644 --- a/TcpDotNet.ClientIntegrationTest/Program.cs +++ b/TcpDotNet.ClientIntegrationTest/Program.cs @@ -11,7 +11,10 @@ client.Disconnected += (_, e) => Console.WriteLine($"Disconnected: {e.Disconnect client.RegisterPacketHandler(PacketHandler.Empty); client.RegisterPacketHandler(new GoodbyePacketHandler()); -await client.ConnectAsync(IPAddress.IPv6Loopback, 1234); + +var remoteEP = new IPEndPoint(IPAddress.Loopback, 1234); +Console.WriteLine($"Connecting to {remoteEP}"); +await client.ConnectAsync(remoteEP); Console.WriteLine($"Connected to {client.RemoteEndPoint}. My session is {client.SessionId}"); diff --git a/TcpDotNet.ListenerIntegrationTest/Program.cs b/TcpDotNet.ListenerIntegrationTest/Program.cs index 611cae2..9ef8c33 100644 --- a/TcpDotNet.ListenerIntegrationTest/Program.cs +++ b/TcpDotNet.ListenerIntegrationTest/Program.cs @@ -10,7 +10,10 @@ listener.ClientDisconnected += (_, e) => Console.WriteLine($"Client {e.Client.Se listener.RegisterPacketHandler(new HelloPacketHandler()); listener.RegisterPacketHandler(new PingPacketHandler()); + +Console.WriteLine("Starting listener"); listener.Start(1234); +Console.WriteLine($"Listener started on {listener.LocalEndPoint}"); await Task.Delay(-1);