├── .clang-format ├── .gitignore ├── .travis.yml ├── .travis ├── check-git-clang-format.sh └── git-clang-format ├── 10m ├── 10m-cli.cc ├── 10m-svr.cc └── Makefile ├── CMakeLists.txt ├── ChangeLog ├── LICENSE ├── Makefile ├── README-en.md ├── README.md ├── doc-en.md ├── doc.md ├── examples ├── Makefile ├── chat.cc ├── codec-cli.cc ├── codec-svr.cc ├── daemon.cc ├── daemon.conf ├── echo.cc ├── hsha.cc ├── http-hello.cc ├── idle-close.cc ├── reconnect.cc ├── safe-close.cc ├── stat.cc ├── timer.cc ├── udp-cli.cc ├── udp-hsha.cc ├── udp-svr.cc └── write-on-empty.cc ├── handy ├── codec.cc ├── codec.h ├── conf.cc ├── conf.h ├── conn.cc ├── conn.h ├── daemon.cc ├── daemon.h ├── event_base.cc ├── event_base.h ├── file.cc ├── file.h ├── handy-imp.h ├── handy.h ├── http.cc ├── http.h ├── logging.cc ├── logging.h ├── net.cc ├── net.h ├── poller.cc ├── poller.h ├── port_posix.cc ├── port_posix.h ├── slice.h ├── stat-svr.cc ├── stat-svr.h ├── status.h ├── threads.cc ├── threads.h ├── udp.cc ├── udp.h ├── util.cc └── util.h ├── protobuf ├── Makefile ├── msg.proto ├── proto_msg.cc ├── proto_msg.h └── test.cc ├── raw-examples ├── Makefile ├── epoll-et.cc ├── epoll.cc └── kqueue.cc └── test ├── conf.ut.cc ├── files ├── bad_comment.ini ├── bad_multi.ini ├── bad_section.ini ├── multi_line.ini ├── normal.ini └── user_error.ini ├── handy.ut.cc ├── tcpcli.ut.cc ├── test_harness.cc ├── test_harness.h ├── threads.ut.cc ├── ut.cc └── util.ut.cc /.clang-format: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/.clang-format -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/.travis.yml -------------------------------------------------------------------------------- /.travis/check-git-clang-format.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/.travis/check-git-clang-format.sh -------------------------------------------------------------------------------- /.travis/git-clang-format: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/.travis/git-clang-format -------------------------------------------------------------------------------- /10m/10m-cli.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/10m/10m-cli.cc -------------------------------------------------------------------------------- /10m/10m-svr.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/10m/10m-svr.cc -------------------------------------------------------------------------------- /10m/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/10m/Makefile -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/ChangeLog -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/Makefile -------------------------------------------------------------------------------- /README-en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/README-en.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/README.md -------------------------------------------------------------------------------- /doc-en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/doc-en.md -------------------------------------------------------------------------------- /doc.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/doc.md -------------------------------------------------------------------------------- /examples/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/examples/Makefile -------------------------------------------------------------------------------- /examples/chat.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/examples/chat.cc -------------------------------------------------------------------------------- /examples/codec-cli.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/examples/codec-cli.cc -------------------------------------------------------------------------------- /examples/codec-svr.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/examples/codec-svr.cc -------------------------------------------------------------------------------- /examples/daemon.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/examples/daemon.cc -------------------------------------------------------------------------------- /examples/daemon.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/examples/daemon.conf -------------------------------------------------------------------------------- /examples/echo.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/examples/echo.cc -------------------------------------------------------------------------------- /examples/hsha.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/examples/hsha.cc -------------------------------------------------------------------------------- /examples/http-hello.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/examples/http-hello.cc -------------------------------------------------------------------------------- /examples/idle-close.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/examples/idle-close.cc -------------------------------------------------------------------------------- /examples/reconnect.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/examples/reconnect.cc -------------------------------------------------------------------------------- /examples/safe-close.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/examples/safe-close.cc -------------------------------------------------------------------------------- /examples/stat.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/examples/stat.cc -------------------------------------------------------------------------------- /examples/timer.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/examples/timer.cc -------------------------------------------------------------------------------- /examples/udp-cli.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/examples/udp-cli.cc -------------------------------------------------------------------------------- /examples/udp-hsha.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/examples/udp-hsha.cc -------------------------------------------------------------------------------- /examples/udp-svr.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/examples/udp-svr.cc -------------------------------------------------------------------------------- /examples/write-on-empty.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/examples/write-on-empty.cc -------------------------------------------------------------------------------- /handy/codec.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/codec.cc -------------------------------------------------------------------------------- /handy/codec.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/codec.h -------------------------------------------------------------------------------- /handy/conf.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/conf.cc -------------------------------------------------------------------------------- /handy/conf.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/conf.h -------------------------------------------------------------------------------- /handy/conn.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/conn.cc -------------------------------------------------------------------------------- /handy/conn.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/conn.h -------------------------------------------------------------------------------- /handy/daemon.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/daemon.cc -------------------------------------------------------------------------------- /handy/daemon.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/daemon.h -------------------------------------------------------------------------------- /handy/event_base.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/event_base.cc -------------------------------------------------------------------------------- /handy/event_base.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/event_base.h -------------------------------------------------------------------------------- /handy/file.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/file.cc -------------------------------------------------------------------------------- /handy/file.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/file.h -------------------------------------------------------------------------------- /handy/handy-imp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/handy-imp.h -------------------------------------------------------------------------------- /handy/handy.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/handy.h -------------------------------------------------------------------------------- /handy/http.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/http.cc -------------------------------------------------------------------------------- /handy/http.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/http.h -------------------------------------------------------------------------------- /handy/logging.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/logging.cc -------------------------------------------------------------------------------- /handy/logging.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/logging.h -------------------------------------------------------------------------------- /handy/net.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/net.cc -------------------------------------------------------------------------------- /handy/net.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/net.h -------------------------------------------------------------------------------- /handy/poller.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/poller.cc -------------------------------------------------------------------------------- /handy/poller.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/poller.h -------------------------------------------------------------------------------- /handy/port_posix.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/port_posix.cc -------------------------------------------------------------------------------- /handy/port_posix.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/port_posix.h -------------------------------------------------------------------------------- /handy/slice.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/slice.h -------------------------------------------------------------------------------- /handy/stat-svr.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/stat-svr.cc -------------------------------------------------------------------------------- /handy/stat-svr.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/stat-svr.h -------------------------------------------------------------------------------- /handy/status.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/status.h -------------------------------------------------------------------------------- /handy/threads.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/threads.cc -------------------------------------------------------------------------------- /handy/threads.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/threads.h -------------------------------------------------------------------------------- /handy/udp.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/udp.cc -------------------------------------------------------------------------------- /handy/udp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/udp.h -------------------------------------------------------------------------------- /handy/util.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/util.cc -------------------------------------------------------------------------------- /handy/util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/handy/util.h -------------------------------------------------------------------------------- /protobuf/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/protobuf/Makefile -------------------------------------------------------------------------------- /protobuf/msg.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/protobuf/msg.proto -------------------------------------------------------------------------------- /protobuf/proto_msg.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/protobuf/proto_msg.cc -------------------------------------------------------------------------------- /protobuf/proto_msg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/protobuf/proto_msg.h -------------------------------------------------------------------------------- /protobuf/test.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/protobuf/test.cc -------------------------------------------------------------------------------- /raw-examples/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/raw-examples/Makefile -------------------------------------------------------------------------------- /raw-examples/epoll-et.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/raw-examples/epoll-et.cc -------------------------------------------------------------------------------- /raw-examples/epoll.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/raw-examples/epoll.cc -------------------------------------------------------------------------------- /raw-examples/kqueue.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/raw-examples/kqueue.cc -------------------------------------------------------------------------------- /test/conf.ut.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/test/conf.ut.cc -------------------------------------------------------------------------------- /test/files/bad_comment.ini: -------------------------------------------------------------------------------- 1 | This is an error 2 | -------------------------------------------------------------------------------- /test/files/bad_multi.ini: -------------------------------------------------------------------------------- 1 | indented 2 | -------------------------------------------------------------------------------- /test/files/bad_section.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/test/files/bad_section.ini -------------------------------------------------------------------------------- /test/files/multi_line.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/test/files/multi_line.ini -------------------------------------------------------------------------------- /test/files/normal.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/test/files/normal.ini -------------------------------------------------------------------------------- /test/files/user_error.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/test/files/user_error.ini -------------------------------------------------------------------------------- /test/handy.ut.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/test/handy.ut.cc -------------------------------------------------------------------------------- /test/tcpcli.ut.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/test/tcpcli.ut.cc -------------------------------------------------------------------------------- /test/test_harness.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/test/test_harness.cc -------------------------------------------------------------------------------- /test/test_harness.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/test/test_harness.h -------------------------------------------------------------------------------- /test/threads.ut.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/test/threads.ut.cc -------------------------------------------------------------------------------- /test/ut.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/test/ut.cc -------------------------------------------------------------------------------- /test/util.ut.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yedf2/handy/HEAD/test/util.ut.cc --------------------------------------------------------------------------------