public Session CreateClientSession(String host, int port) { Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); Session session = new Session(this, socket); session.Connect(host, port); return(session); }