├── .gitignore ├── CMakeLists.txt ├── HIREDIS_LICENSE ├── HTTP_PARSER_LICENSE ├── LICENSE ├── README.md ├── src ├── CMakeLists.txt ├── Makefile ├── acceptor.cpp ├── acceptor.h ├── address.cpp ├── address.h ├── connection.cpp ├── connection.h ├── connector.h ├── connector.inl ├── http │ ├── CMakeLists.txt │ ├── http_parser.c │ ├── http_parser.h │ ├── httpclient.cpp │ ├── httpclient.h │ ├── httpconnection.cpp │ ├── httpconnection.h │ ├── httpconnector.cpp │ ├── httpconnector.h │ ├── httpparser.cpp │ ├── httpparser.h │ ├── httprequest.cpp │ ├── httprequest.h │ ├── httpresponse.cpp │ ├── httpresponse.h │ ├── httpserver.cpp │ ├── httpserver.h │ ├── httputil.cpp │ ├── httputil.h │ ├── tnet_http.h │ ├── wsclient.cpp │ ├── wsclient.h │ ├── wsconnection.cpp │ ├── wsconnection.h │ ├── wsutil.cpp │ └── wsutil.h ├── ioevent.h ├── ioloop.cpp ├── ioloop.h ├── log.cpp ├── log.h ├── nocopyable.h ├── notifier.cpp ├── notifier.h ├── polarssl │ ├── base64.c │ ├── base64.h │ ├── md5.c │ ├── md5.h │ ├── polarssl_1.2.7 │ ├── sha1.c │ └── sha1.h ├── poller.cpp ├── poller.h ├── process.cpp ├── process.h ├── redis │ ├── CMakeLists.txt │ ├── hiredis.c │ ├── hiredis.h │ ├── redisclient.cpp │ ├── redisclient.h │ ├── redisconnection.cpp │ ├── redisconnection.h │ ├── redistrans.cpp │ ├── redistrans.h │ ├── sds.c │ ├── sds.h │ └── tnet_redis.h ├── signaler.cpp ├── signaler.h ├── sockutil.cpp ├── sockutil.h ├── spinlock.h ├── stringutil.cpp ├── stringutil.h ├── tcpserver.cpp ├── tcpserver.h ├── timer.cpp ├── timer.h ├── timingwheel.cpp ├── timingwheel.h └── tnet.h └── test ├── CMakeLists.txt ├── cometclient_test.cpp ├── cometserver_test.cpp ├── echoclient_test.cpp ├── echoserver_test.cpp ├── httpclient_test.cpp ├── httpserver_test.cpp ├── notifier_test.cpp ├── redisclient_test.cpp ├── signaler_test.cpp ├── timer_test.cpp ├── timingwheel_test.cpp ├── wsclient_test.cpp └── wsserver_test.cpp /.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /HIREDIS_LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/HIREDIS_LICENSE -------------------------------------------------------------------------------- /HTTP_PARSER_LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/HTTP_PARSER_LICENSE -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/README.md -------------------------------------------------------------------------------- /src/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/CMakeLists.txt -------------------------------------------------------------------------------- /src/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/Makefile -------------------------------------------------------------------------------- /src/acceptor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/acceptor.cpp -------------------------------------------------------------------------------- /src/acceptor.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/acceptor.h -------------------------------------------------------------------------------- /src/address.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/address.cpp -------------------------------------------------------------------------------- /src/address.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/address.h -------------------------------------------------------------------------------- /src/connection.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/connection.cpp -------------------------------------------------------------------------------- /src/connection.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/connection.h -------------------------------------------------------------------------------- /src/connector.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/connector.h -------------------------------------------------------------------------------- /src/connector.inl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/connector.inl -------------------------------------------------------------------------------- /src/http/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/http/CMakeLists.txt -------------------------------------------------------------------------------- /src/http/http_parser.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/http/http_parser.c -------------------------------------------------------------------------------- /src/http/http_parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/http/http_parser.h -------------------------------------------------------------------------------- /src/http/httpclient.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/http/httpclient.cpp -------------------------------------------------------------------------------- /src/http/httpclient.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/http/httpclient.h -------------------------------------------------------------------------------- /src/http/httpconnection.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/http/httpconnection.cpp -------------------------------------------------------------------------------- /src/http/httpconnection.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/http/httpconnection.h -------------------------------------------------------------------------------- /src/http/httpconnector.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/http/httpconnector.cpp -------------------------------------------------------------------------------- /src/http/httpconnector.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/http/httpconnector.h -------------------------------------------------------------------------------- /src/http/httpparser.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/http/httpparser.cpp -------------------------------------------------------------------------------- /src/http/httpparser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/http/httpparser.h -------------------------------------------------------------------------------- /src/http/httprequest.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/http/httprequest.cpp -------------------------------------------------------------------------------- /src/http/httprequest.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/http/httprequest.h -------------------------------------------------------------------------------- /src/http/httpresponse.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/http/httpresponse.cpp -------------------------------------------------------------------------------- /src/http/httpresponse.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/http/httpresponse.h -------------------------------------------------------------------------------- /src/http/httpserver.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/http/httpserver.cpp -------------------------------------------------------------------------------- /src/http/httpserver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/http/httpserver.h -------------------------------------------------------------------------------- /src/http/httputil.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/http/httputil.cpp -------------------------------------------------------------------------------- /src/http/httputil.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/http/httputil.h -------------------------------------------------------------------------------- /src/http/tnet_http.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/http/tnet_http.h -------------------------------------------------------------------------------- /src/http/wsclient.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/http/wsclient.cpp -------------------------------------------------------------------------------- /src/http/wsclient.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/http/wsclient.h -------------------------------------------------------------------------------- /src/http/wsconnection.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/http/wsconnection.cpp -------------------------------------------------------------------------------- /src/http/wsconnection.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/http/wsconnection.h -------------------------------------------------------------------------------- /src/http/wsutil.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/http/wsutil.cpp -------------------------------------------------------------------------------- /src/http/wsutil.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/http/wsutil.h -------------------------------------------------------------------------------- /src/ioevent.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/ioevent.h -------------------------------------------------------------------------------- /src/ioloop.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/ioloop.cpp -------------------------------------------------------------------------------- /src/ioloop.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/ioloop.h -------------------------------------------------------------------------------- /src/log.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/log.cpp -------------------------------------------------------------------------------- /src/log.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/log.h -------------------------------------------------------------------------------- /src/nocopyable.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/nocopyable.h -------------------------------------------------------------------------------- /src/notifier.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/notifier.cpp -------------------------------------------------------------------------------- /src/notifier.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/notifier.h -------------------------------------------------------------------------------- /src/polarssl/base64.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/polarssl/base64.c -------------------------------------------------------------------------------- /src/polarssl/base64.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/polarssl/base64.h -------------------------------------------------------------------------------- /src/polarssl/md5.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/polarssl/md5.c -------------------------------------------------------------------------------- /src/polarssl/md5.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/polarssl/md5.h -------------------------------------------------------------------------------- /src/polarssl/polarssl_1.2.7: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/polarssl/sha1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/polarssl/sha1.c -------------------------------------------------------------------------------- /src/polarssl/sha1.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/polarssl/sha1.h -------------------------------------------------------------------------------- /src/poller.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/poller.cpp -------------------------------------------------------------------------------- /src/poller.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/poller.h -------------------------------------------------------------------------------- /src/process.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/process.cpp -------------------------------------------------------------------------------- /src/process.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/process.h -------------------------------------------------------------------------------- /src/redis/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/redis/CMakeLists.txt -------------------------------------------------------------------------------- /src/redis/hiredis.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/redis/hiredis.c -------------------------------------------------------------------------------- /src/redis/hiredis.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/redis/hiredis.h -------------------------------------------------------------------------------- /src/redis/redisclient.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/redis/redisclient.cpp -------------------------------------------------------------------------------- /src/redis/redisclient.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/redis/redisclient.h -------------------------------------------------------------------------------- /src/redis/redisconnection.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/redis/redisconnection.cpp -------------------------------------------------------------------------------- /src/redis/redisconnection.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/redis/redisconnection.h -------------------------------------------------------------------------------- /src/redis/redistrans.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/redis/redistrans.cpp -------------------------------------------------------------------------------- /src/redis/redistrans.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/redis/redistrans.h -------------------------------------------------------------------------------- /src/redis/sds.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/redis/sds.c -------------------------------------------------------------------------------- /src/redis/sds.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/redis/sds.h -------------------------------------------------------------------------------- /src/redis/tnet_redis.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/redis/tnet_redis.h -------------------------------------------------------------------------------- /src/signaler.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/signaler.cpp -------------------------------------------------------------------------------- /src/signaler.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/signaler.h -------------------------------------------------------------------------------- /src/sockutil.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/sockutil.cpp -------------------------------------------------------------------------------- /src/sockutil.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/sockutil.h -------------------------------------------------------------------------------- /src/spinlock.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/spinlock.h -------------------------------------------------------------------------------- /src/stringutil.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/stringutil.cpp -------------------------------------------------------------------------------- /src/stringutil.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/stringutil.h -------------------------------------------------------------------------------- /src/tcpserver.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/tcpserver.cpp -------------------------------------------------------------------------------- /src/tcpserver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/tcpserver.h -------------------------------------------------------------------------------- /src/timer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/timer.cpp -------------------------------------------------------------------------------- /src/timer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/timer.h -------------------------------------------------------------------------------- /src/timingwheel.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/timingwheel.cpp -------------------------------------------------------------------------------- /src/timingwheel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/timingwheel.h -------------------------------------------------------------------------------- /src/tnet.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/src/tnet.h -------------------------------------------------------------------------------- /test/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/test/CMakeLists.txt -------------------------------------------------------------------------------- /test/cometclient_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/test/cometclient_test.cpp -------------------------------------------------------------------------------- /test/cometserver_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/test/cometserver_test.cpp -------------------------------------------------------------------------------- /test/echoclient_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/test/echoclient_test.cpp -------------------------------------------------------------------------------- /test/echoserver_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/test/echoserver_test.cpp -------------------------------------------------------------------------------- /test/httpclient_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/test/httpclient_test.cpp -------------------------------------------------------------------------------- /test/httpserver_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/test/httpserver_test.cpp -------------------------------------------------------------------------------- /test/notifier_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/test/notifier_test.cpp -------------------------------------------------------------------------------- /test/redisclient_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/test/redisclient_test.cpp -------------------------------------------------------------------------------- /test/signaler_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/test/signaler_test.cpp -------------------------------------------------------------------------------- /test/timer_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/test/timer_test.cpp -------------------------------------------------------------------------------- /test/timingwheel_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/test/timingwheel_test.cpp -------------------------------------------------------------------------------- /test/wsclient_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/test/wsclient_test.cpp -------------------------------------------------------------------------------- /test/wsserver_test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/siddontang/libtnet/HEAD/test/wsserver_test.cpp --------------------------------------------------------------------------------