combine kcp with boost::asio. - kcp: a Fast and Reliable udp protocal.
combine kcp with boost::asio. - kcp: a Fast and Reliable udp protocal.
worst network lag happen:
asio: 10:51.21
291 295 269 268 231 195 249 230 225 204
enet: 10:51.21
1563 1520 1470 1482 1438 1454 1412 1637 1588 1540I using gcc 4.8
Other version of gcc that support c++11 should be OK. You can compile asio_kcp as verifying.
I using boost 1.58
Build g2log
Build muduo
modify the BOOST_LIB_PATH and BOOST_INC_PATH in allmake.sh
do compiling at project root folder: $ . allmake.sh
The third_party folder should like below,
▾ third_party/
▾ g2log/
▸ build/
▸ src/
▸ test_example/
▸ test_performance/
▸ test_unit/
CMakeLists.txt
▸ muduo/The third_party folder should like below,
▾ third_party/
▸ g2log/
▸ gmock-1.7.0/
▸ gtest-1.7.0/
▸ muduo/./server/server 0.0.0.0 12345 2>&1 | grep --line-buffered -v -e deadline_timer -e "ec=system:0$" -e "|$" >>bserver.txt
./client_with_asio/client_with_asio 23425 127.0.0.1 12345 500 2>/dev/nullgit checkout kcp_bench_mark_test
read the readme.md in this branch. and do compiling thing.
then run server on your server:
./server/server 0.0.0.0 12345 2>&1 | grep --line-buffered -v -e deadline_timer -e "ec=system:0$" -e "|$" >>bserver.txtgit checkout kcp_bench_mark_test
read the readme.md in this branch. and do compiling thing.
./client_with_asio/client_with_asio 23445 120.26.200.117 12345 500 2>/dev/null
# Note: changing the ip and port to your server which is running the asio_kcp_serverNo open issues yet, or sync has not completed.