//------------------------------------------------------------------------------------------- public string AuthorizeUser(PopClient popclient, string user, string pass) { if (AuthorizePopUser != null) return AuthorizePopUser(popclient, user, pass); else return "Error"; }
//------------------------------------------------------------------------------------------- public void DebugOut(PopClient popclient, string message, POPDebugType debugtype) { if (DebugOutput != null) DebugOutput(popclient, message, debugtype); }
//------------------------------------------------------------------------------------------- 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); } }