Example #1
0
        public void Connect(IPEndPoint ipEndPoint, IrcUserRegistrationInfo registrationInfo)
        {
            Connect(registrationInfo);

            if (Client == null)
            {
                Client = new Tcp(Loop);
            }

            Client.Connect(ipEndPoint, (ex) => {
                isConnected = true;
                HandleClientConnected(registrationInfo);
                Client.Data += OnRead;
                Client.Resume();
            });

            HandleClientConnecting();
        }