Esempio n. 1
0
 //-------------------------------------------------------------------------------------------
 public string AuthorizeUser(PopClient popclient, string user, string pass)
 {
     if (AuthorizePopUser != null)
         return AuthorizePopUser(popclient, user, pass);
     else
         return "Error";
 }
Esempio n. 2
0
 //-------------------------------------------------------------------------------------------
 public void DebugOut(PopClient popclient, string message, POPDebugType debugtype)
 {
     if (DebugOutput != null)
         DebugOutput(popclient, message, debugtype);
 }
Esempio n. 3
0
        //-------------------------------------------------------------------------------------------
        private void OnAccept(Object sock)
        {
            try
            {
                PopClient client = new PopClient((Socket) sock, this);

                connections.Add(client);
                client.HandleConnection();
                connections.Remove(client);

                sock	= null;
                client	= null;
            }
            catch (Exception e)
            {
                    DebugOut(null, "Unknown error:\r\n\r\n" + e.Message, POPDebugType.Critical);
            }
        }