using System; using System.Collections.Generic; using System.Text; using System.Net; namespace BCG { public class RemoteConnectionInfo { private string myIp; private int myPort; private IPEndPoint myEndPoint; public RemoteConnectionInfo(string ip, int port) { myIp = ip; myPort = port; } public RemoteConnectionInfo(string ip, short port, IPEndPoint endPoint) : this (ip, port) { myEndPoint = endPoint; } public string ip { get { return myIp; } } public int port { get { return myPort; } } public IPEndPoint endPoint { get { return myEndPoint; } } public override string ToString() { return ip + ":" + port; } } }