小弟在公司做自动下载的项目,手上用的代码,是从书上抄来修改的,也不知道有没有漏洞,不知道哪位兄弟手上有稳定的IOCP代码(只要能正常连接、收发信息就行了),能发给我做备用不?祝大家身体健康

解决方案 »

  1.   

    http://www.codeproject.com/internet/winsockiocp.asp
      

  2.   

    ACE_WIN32_Proactor sample
    http://blog.csdn.net/hxzb7215191/archive/2006/02/11/596809.aspx
    http://budd.eecs.oregonstate.edu/~archive/opensource/ace/examples/Reactor/Proactor/test_proactor2.cpp
    Boost.ASIO
    http://asio.sourceforge.net/boost-asio-proposal-0.3.6/libs/asio/doc/tutorial/index.html
    Implementation using Windows overlapped I/O
    On Windows NT, 2000 and XP, asio takes advantage of overlapped I/O to provide an efficient implementation of the Proactor design pattern. This implementation approach corresponds to the Proactor design pattern as follows:Asynchronous Operation Processor
        This is implemented by the operating system. Operations are initiated by calling an overlapped function such as AcceptEx.Completion Event Queue
        This is implemented by the operating system, and is associated with an I/O completion port. There is one I/O completion port for each boost::asio::io_service instance.Asynchronous Event Demultiplexer
        Called by asio to dequeue events and their associated completion handlers.
      

  3.   

    IOCP自己不精通,就是发个给你也是排不上什么大用场的。劝你还是自己写。
      

  4.   

    在CODEPROJECT上找一俣,一大堆的!