Yaircc.Net.IRC.Connection.Connect C# (CSharp) Method

Connect() public method

Begin establishing the connection asynchronously.
public Connect ( ) : void
return void
        public void Connect()
        {
            this.client = new TcpClient();
            this.client.BeginConnect(this.server, this.port, this.ConnectCallback, null);

            if (this.beganConnecting != null)
            {
                this.beganConnecting(this, EventArgs.Empty);
            }
        }