Exemplo n.º 1
0
        public POPClient(IMailReader mailreader)
        {
            m_CurrentState   = DisconnectedState.GetInstane();
            m_TcpClient      = new TcpClient();
            m_CommandHistory = new Queue <jingxian.mail.popper.RFC1939.POPCommand>();
            m_PollTimer      = new System.Timers.Timer();
            m_MailReader     = mailreader;

            mailreader.DataRead += new DataReadEventHandler(OnDataRead);
            m_PollTimer.Elapsed += new System.Timers.ElapsedEventHandler(m_PollTimer_Elapsed);
        }
Exemplo n.º 2
0
 public StateChangedEventArgs(POPState newState)
 {
     m_NewState = newState;
 }