├── LICENSE ├── Makefile ├── README.md ├── demo ├── Makefile ├── demo_all_sort.cc ├── demo_any_sort.cc └── demo_http_server.cc ├── deps ├── gyp.zip ├── hiredis-0.11.0u2.zip └── libuv-0.10.27.zip ├── docs ├── buttondown.css └── index.html ├── extensions ├── http │ ├── Makefile │ └── cocoflow-http.cc ├── redis │ ├── Makefile │ └── cocoflow-redis.cc ├── test │ ├── Makefile │ ├── test_http_get.cc │ ├── test_http_post.cc │ ├── test_redis.cc │ └── test_redis2.cc ├── vc │ ├── cocoflow-extensions.sln │ ├── libccf-http.vcproj │ ├── test_http_get.vcproj │ └── test_http_post.vcproj └── vcbuild.bat ├── include ├── cocoflow-http.h ├── cocoflow-redis.h └── cocoflow.h ├── lib └── chishaxie ├── src ├── Makefile ├── cocoflow-comm.h ├── cocoflow.cc ├── getaddrinfo.cc ├── max_map_count.c ├── max_map_count.h ├── sleep.cc ├── sync.cc ├── tcp.cc ├── tools.cc └── udp.cc ├── test ├── Makefile ├── benchmark_sleep.cc ├── benchmark_tcp.cc ├── benchmark_udp.cc ├── benchmark_udp2.cc ├── simple_rand.h ├── test_getaddrinfo.cc ├── test_primitive.cc ├── test_sleep.cc ├── test_tcp.cc ├── test_tcp2.cc ├── test_tcp3.cc ├── test_udp.cc ├── test_udp2.cc ├── test_udp3.cc ├── uc_benchmark │ ├── Makefile │ ├── switch_diff.cc │ ├── switch_diff_big_stack.cc │ ├── switch_diff_middle_stack.cc │ ├── switch_diff_small_stack.cc │ ├── switch_diff_super_big_stack.cc │ ├── switch_in_ping_pong.cc │ └── switch_new.cc └── unexpected_tcp_timing.cc ├── vc ├── benchmark_sleep.vcproj ├── benchmark_tcp.vcproj ├── benchmark_udp.vcproj ├── benchmark_udp2.vcproj ├── cocoflow.sln ├── demo_all_sort.vcproj ├── demo_any_sort.vcproj ├── demo_http_server.vcproj ├── libccf.vcproj ├── test.bat ├── test_getaddrinfo.vcproj ├── test_primitive.vcproj ├── test_sleep.vcproj ├── test_tcp.vcproj ├── test_tcp2.vcproj ├── test_tcp3.vcproj ├── test_udp.vcproj ├── test_udp2.vcproj ├── test_udp3.vcproj ├── test_x64.bat └── unexpected_tcp_timing.vcproj └── vcbuild.bat /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/README.md -------------------------------------------------------------------------------- /demo/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/demo/Makefile -------------------------------------------------------------------------------- /demo/demo_all_sort.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/demo/demo_all_sort.cc -------------------------------------------------------------------------------- /demo/demo_any_sort.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/demo/demo_any_sort.cc -------------------------------------------------------------------------------- /demo/demo_http_server.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/demo/demo_http_server.cc -------------------------------------------------------------------------------- /deps/gyp.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/deps/gyp.zip -------------------------------------------------------------------------------- /deps/hiredis-0.11.0u2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/deps/hiredis-0.11.0u2.zip -------------------------------------------------------------------------------- /deps/libuv-0.10.27.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/deps/libuv-0.10.27.zip -------------------------------------------------------------------------------- /docs/buttondown.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/docs/buttondown.css -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/docs/index.html -------------------------------------------------------------------------------- /extensions/http/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/extensions/http/Makefile -------------------------------------------------------------------------------- /extensions/http/cocoflow-http.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/extensions/http/cocoflow-http.cc -------------------------------------------------------------------------------- /extensions/redis/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/extensions/redis/Makefile -------------------------------------------------------------------------------- /extensions/redis/cocoflow-redis.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/extensions/redis/cocoflow-redis.cc -------------------------------------------------------------------------------- /extensions/test/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/extensions/test/Makefile -------------------------------------------------------------------------------- /extensions/test/test_http_get.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/extensions/test/test_http_get.cc -------------------------------------------------------------------------------- /extensions/test/test_http_post.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/extensions/test/test_http_post.cc -------------------------------------------------------------------------------- /extensions/test/test_redis.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/extensions/test/test_redis.cc -------------------------------------------------------------------------------- /extensions/test/test_redis2.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/extensions/test/test_redis2.cc -------------------------------------------------------------------------------- /extensions/vc/cocoflow-extensions.sln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/extensions/vc/cocoflow-extensions.sln -------------------------------------------------------------------------------- /extensions/vc/libccf-http.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/extensions/vc/libccf-http.vcproj -------------------------------------------------------------------------------- /extensions/vc/test_http_get.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/extensions/vc/test_http_get.vcproj -------------------------------------------------------------------------------- /extensions/vc/test_http_post.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/extensions/vc/test_http_post.vcproj -------------------------------------------------------------------------------- /extensions/vcbuild.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/extensions/vcbuild.bat -------------------------------------------------------------------------------- /include/cocoflow-http.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/include/cocoflow-http.h -------------------------------------------------------------------------------- /include/cocoflow-redis.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/include/cocoflow-redis.h -------------------------------------------------------------------------------- /include/cocoflow.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/include/cocoflow.h -------------------------------------------------------------------------------- /lib/chishaxie: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/src/Makefile -------------------------------------------------------------------------------- /src/cocoflow-comm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/src/cocoflow-comm.h -------------------------------------------------------------------------------- /src/cocoflow.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/src/cocoflow.cc -------------------------------------------------------------------------------- /src/getaddrinfo.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/src/getaddrinfo.cc -------------------------------------------------------------------------------- /src/max_map_count.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/src/max_map_count.c -------------------------------------------------------------------------------- /src/max_map_count.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/src/max_map_count.h -------------------------------------------------------------------------------- /src/sleep.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/src/sleep.cc -------------------------------------------------------------------------------- /src/sync.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/src/sync.cc -------------------------------------------------------------------------------- /src/tcp.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/src/tcp.cc -------------------------------------------------------------------------------- /src/tools.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/src/tools.cc -------------------------------------------------------------------------------- /src/udp.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/src/udp.cc -------------------------------------------------------------------------------- /test/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/test/Makefile -------------------------------------------------------------------------------- /test/benchmark_sleep.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/test/benchmark_sleep.cc -------------------------------------------------------------------------------- /test/benchmark_tcp.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/test/benchmark_tcp.cc -------------------------------------------------------------------------------- /test/benchmark_udp.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/test/benchmark_udp.cc -------------------------------------------------------------------------------- /test/benchmark_udp2.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/test/benchmark_udp2.cc -------------------------------------------------------------------------------- /test/simple_rand.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/test/simple_rand.h -------------------------------------------------------------------------------- /test/test_getaddrinfo.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/test/test_getaddrinfo.cc -------------------------------------------------------------------------------- /test/test_primitive.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/test/test_primitive.cc -------------------------------------------------------------------------------- /test/test_sleep.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/test/test_sleep.cc -------------------------------------------------------------------------------- /test/test_tcp.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/test/test_tcp.cc -------------------------------------------------------------------------------- /test/test_tcp2.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/test/test_tcp2.cc -------------------------------------------------------------------------------- /test/test_tcp3.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/test/test_tcp3.cc -------------------------------------------------------------------------------- /test/test_udp.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/test/test_udp.cc -------------------------------------------------------------------------------- /test/test_udp2.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/test/test_udp2.cc -------------------------------------------------------------------------------- /test/test_udp3.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/test/test_udp3.cc -------------------------------------------------------------------------------- /test/uc_benchmark/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/test/uc_benchmark/Makefile -------------------------------------------------------------------------------- /test/uc_benchmark/switch_diff.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/test/uc_benchmark/switch_diff.cc -------------------------------------------------------------------------------- /test/uc_benchmark/switch_diff_big_stack.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/test/uc_benchmark/switch_diff_big_stack.cc -------------------------------------------------------------------------------- /test/uc_benchmark/switch_diff_middle_stack.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/test/uc_benchmark/switch_diff_middle_stack.cc -------------------------------------------------------------------------------- /test/uc_benchmark/switch_diff_small_stack.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/test/uc_benchmark/switch_diff_small_stack.cc -------------------------------------------------------------------------------- /test/uc_benchmark/switch_diff_super_big_stack.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/test/uc_benchmark/switch_diff_super_big_stack.cc -------------------------------------------------------------------------------- /test/uc_benchmark/switch_in_ping_pong.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/test/uc_benchmark/switch_in_ping_pong.cc -------------------------------------------------------------------------------- /test/uc_benchmark/switch_new.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/test/uc_benchmark/switch_new.cc -------------------------------------------------------------------------------- /test/unexpected_tcp_timing.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/test/unexpected_tcp_timing.cc -------------------------------------------------------------------------------- /vc/benchmark_sleep.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/vc/benchmark_sleep.vcproj -------------------------------------------------------------------------------- /vc/benchmark_tcp.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/vc/benchmark_tcp.vcproj -------------------------------------------------------------------------------- /vc/benchmark_udp.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/vc/benchmark_udp.vcproj -------------------------------------------------------------------------------- /vc/benchmark_udp2.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/vc/benchmark_udp2.vcproj -------------------------------------------------------------------------------- /vc/cocoflow.sln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/vc/cocoflow.sln -------------------------------------------------------------------------------- /vc/demo_all_sort.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/vc/demo_all_sort.vcproj -------------------------------------------------------------------------------- /vc/demo_any_sort.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/vc/demo_any_sort.vcproj -------------------------------------------------------------------------------- /vc/demo_http_server.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/vc/demo_http_server.vcproj -------------------------------------------------------------------------------- /vc/libccf.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/vc/libccf.vcproj -------------------------------------------------------------------------------- /vc/test.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/vc/test.bat -------------------------------------------------------------------------------- /vc/test_getaddrinfo.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/vc/test_getaddrinfo.vcproj -------------------------------------------------------------------------------- /vc/test_primitive.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/vc/test_primitive.vcproj -------------------------------------------------------------------------------- /vc/test_sleep.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/vc/test_sleep.vcproj -------------------------------------------------------------------------------- /vc/test_tcp.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/vc/test_tcp.vcproj -------------------------------------------------------------------------------- /vc/test_tcp2.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/vc/test_tcp2.vcproj -------------------------------------------------------------------------------- /vc/test_tcp3.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/vc/test_tcp3.vcproj -------------------------------------------------------------------------------- /vc/test_udp.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/vc/test_udp.vcproj -------------------------------------------------------------------------------- /vc/test_udp2.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/vc/test_udp2.vcproj -------------------------------------------------------------------------------- /vc/test_udp3.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/vc/test_udp3.vcproj -------------------------------------------------------------------------------- /vc/test_x64.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/vc/test_x64.bat -------------------------------------------------------------------------------- /vc/unexpected_tcp_timing.vcproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/vc/unexpected_tcp_timing.vcproj -------------------------------------------------------------------------------- /vcbuild.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chishaxie/cocoflow/HEAD/vcbuild.bat --------------------------------------------------------------------------------