BitServer.Program.startListener C# (CSharp) Method

startListener() static private method

static private startListener ( ) : void
return void
        internal static void startListener()
        {
            R = new Random();
            Psrv = new POP3server(110);
            Ssrv = new SMTPserver(25);
            Psrv.POP3incomming += new POP3incommingHandler(Psrv_POP3incomming);
            Ssrv.SMTPincomming += new SMTPincommingHandler(Ssrv_SMTPincomming);
        }

Usage Example

Example #1
0
 private void frmLoop_Shown(object sender, EventArgs e)
 {
     Program.buildIcon();
     Program.startListener();
     Hide();
 }