BitServer.SMTPserver.conIn C# (CSharp) Method

conIn() private method

private conIn ( IAsyncResult ar ) : void
ar IAsyncResult
return void
        private void conIn(IAsyncResult ar)
        {
            TcpClient c = server.EndAcceptTcpClient(ar);
            if (c != null)
            {
                if (SMTPincomming != null)
                {
                    SMTPincomming(c);
                }
                else
                {
                    try
                    {
                        c.Client.Send(Encoding.ASCII.GetBytes("421 i'm busy. GTFO!"));
                    }
                    catch
                    {
                        //NOOP
                    }
                    c.Client.Disconnect(false);
                    c.Close();
                }
                IA = server.BeginAcceptTcpClient(new AsyncCallback(conIn), null);
            }
        }