Hi, http://spserver.googlecode.com/files/libevent-1.4.4-iocp-3.zip Add iocpserver.cpp and testiocpstress.cpp.
iocpserver.cpp comes from : ftp://ftp.microsoft.com/bussys/winsock/winsock2/iocp.zip Make some changes: when client sends quit, server forces to close the connection. To let the iocpserver.exe has the same behavior as echo_iocp.exe. Using testiocpstress.exe to stress echo_iocp.exe and iocpserver.exe . It is used libevent+iocp to implement echo_iocp.exe . I guesss iocpserver.cpp is not very well implemented, it seems echo_iocp.exe faster than iocpserver.exe. I hope people can try this code, any and all comments are appreciated. result of echo_iocp.exe ======================================================================= testiocpstress.exe -p 5555 -c 10000 -m 100 Test result : Clients : 10000, Messages Per Client : 100 Failure : send 0, WSASend 0, recv 0, WSARecv 0, GQCS 0 ExecTimes : 50.999765 seconds client Send Recv total : 1000000 1000000 average : 19608/s 19608/s result of echo_iocp.exe ======================================================================= testiocpstress.exe -p 5001 -c 10000 -m 100 Test result : Clients : 10000, Messages Per Client : 100 Failure : send 0, WSASend 0, recv 0, WSARecv 0, GQCS 0 ExecTimes : 69.999781 seconds client Send Recv total : 1000000 1000000 average : 14286/s 14286/s Best Regards, Stephen Liu _______________________________________________ Libevent-users mailing list Libevent-users@monkey.org http://monkeymail.org/mailman/listinfo/libevent-users