# re: IOCP完成端口源代碼 回復 更多評論
2011-07-04 21:22 by
感謝博主分享,下下來調(diào)試下看效果如何先
# re: IOCP完成端口源代碼 回復 更多評論
2011-07-04 23:11 by
編譯有兩個問題:可能是版本沒有對應。
#include "Queue.h"
#include "Queue.h"
# re: IOCP完成端口源代碼 回復 更多評論
2011-07-05 09:45 by
我在VS2010和VS2005下都編譯成功的,“Queue.h”文件在“include”目錄下的
# re: IOCP完成端口源代碼 回復 更多評論
2011-07-05 14:44 by
vc10編譯test編譯錯誤:
LNK1104: cannot open file 'xnet_d.lib'
VC10編譯xnet的編譯錯誤:
fatal error LNK1104: cannot open file 'xnet_d.lib'
x-net\source\queue.cpp(2): fatal error C1083: Cannot open include file: 'comm\Queue.h': No such file or directory
x-net\source\iocp.cpp(2): fatal error C1083: Cannot open include file: 'comm\IOCP.h': No such file or directory
# re: IOCP完成端口源代碼 回復 更多評論
2011-07-05 15:20 by
@Benjamin
把#include "comm\Queue.h"改為#include "queue.h"
#include "comm\IOCP.h"改為#include "iocp.h"
我在修改路徑的時候忘記改.cpp文件了,不好意思
# re: IOCP完成端口源代碼 回復 更多評論
2011-07-05 23:04 by
改過頭文件后,VC10運行test錯誤:
\x-net\bin\debug\log4cplusD.dll', Cannot find or open the PDB file;
# re: IOCP完成端口源代碼 回復 更多評論
2011-07-07 22:21 by
linux里面的iocp叫epoll,反正很多人老提這個iocp,原理其實也很簡單,直接由kernel調(diào)度反射回user空間的函數(shù)地址,提高效率,但往往軟件的性能不是在于連接數(shù)和底層通信性能的提高,而是軟件的其他應用部分做的很差,比如不考慮數(shù)據(jù)的訪問負荷等等,這些問題不注意,下面做的再好也是白搭,所以我覺得比較無趣
# re: IOCP完成端口源代碼 回復 更多評論
2011-07-08 09:01 by
@放屁阿狗
我只是提供一個通訊架構,而不是一個完整的解決方案。網(wǎng)上有開源的ACE,功能肯定比我的強大。