public ClientConnection(IPEndPoint endpoint, IClientIntegration clientIntegration) { this.endpoint = endpoint; this.clientIntegration = clientIntegration; socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.IP); clientIntegration.Init(this); }