CPopProxyMT -


CPOL
Windows
C/C++

软件简介

CPopProxyMT 是一个多线程的 POP3 代理服务器的基本骨架,你可以使用它来定义自己的功能扩展实现简单的 POP3 代理功能。

使用方法:

//...

CPopProxyMT pop_proxy;

//...

case WM_COMMAND: 
    switch (LOWORD(wParam)) 
    {
    case IDOK:
        // This is a sorta toggle button
        // It starts/stops the proxy alternatively
        if(pop_proxy.IsRunning())
        {
            pop_proxy.StopProxy();
            SetDlgItemText(hwnd,IDOK,"Start");
            SetDlgItemText(hwnd,IDC_EDIT1,"POP Proxy stopped");
        }
        else
        {               
            pop_proxy.StartProxy(3110);
            SetDlgItemText(hwnd,IDOK,"Stop");
            SetDlgItemText(hwnd,IDC_EDIT1,"POP Proxy running");
        }
        return TRUE;

//...