public bool ConnectAsync(string host, int port) { this.outArgs.RemoteEndPoint = new IPEndPoint(IPAddress.Parse(host), port); if (this.socket.ConnectAsync(this.outArgs)) { return true; } OnConnectComplete(this.outArgs); return false; }