Rover.TCPServer.PrintClientInfo C# (CSharp) Method

PrintClientInfo() public method

Print the client information
public PrintClientInfo ( TcpClient client ) : void
client System.Net.Sockets.TcpClient
return void
        public void PrintClientInfo(TcpClient client)
        {
            Console.WriteLine("Address Family = " + client.Client.AddressFamily.ToString() +
                              "\nSocketType = " + client.Client.SocketType.ToString() +
                              "\nProtocolType = " + client.Client.ProtocolType.ToString());
            Console.WriteLine("RemoteEndPoint IP: " + IPAddress.Parse(((IPEndPoint)client.Client.RemoteEndPoint).Address.ToString()) +
                              " on Port: " + ((IPEndPoint)client.Client.RemoteEndPoint).Port.ToString());
            Console.WriteLine("LocalEndPoint IP :" + IPAddress.Parse(((IPEndPoint)client.Client.LocalEndPoint).Address.ToString()) +
                              " on Port " + ((IPEndPoint)client.Client.LocalEndPoint).Port.ToString());
        }