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);
}
}