├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── SConstruct ├── TODO ├── _config.yml ├── bin └── .gitkeep ├── include └── simple │ ├── assert.h │ ├── atomic.h │ ├── cJSON.h │ ├── collection │ ├── array_list.h │ ├── blocking_queue.h │ └── order_list.h │ ├── conf.h │ ├── counter.h │ ├── event_loop.h │ ├── file │ └── async_file.h │ ├── io_thread.h │ ├── logging.h │ ├── memory_pool.h │ ├── string_tool.h │ ├── timestamp.h │ └── unittest.h ├── sample ├── SConscript ├── io │ ├── SConscript │ ├── echo │ │ ├── SConscript │ │ ├── client.c │ │ └── server.c │ └── time_event │ │ ├── SConscript │ │ └── time_event_test.c └── logging │ ├── A0.LOG │ ├── A1.LOG │ ├── SConscript │ ├── logging.conf │ └── logging_test.c ├── src ├── SConscript ├── assert.c ├── cjson │ └── cJSON.c ├── collection │ ├── SConscript │ ├── array_list.c │ ├── blocking_queue.c │ ├── order_list.c │ └── unittest │ │ ├── SConscript │ │ └── array_list_unittest.c ├── conf.c ├── event_loop.c ├── file │ └── async_file.c ├── io_thread.c ├── logging │ ├── log_conf.c │ ├── log_conf.h │ ├── log_file_manager.c │ ├── log_file_manager.h │ ├── log_formatter.c │ ├── log_formatter.h │ ├── log_record.c │ ├── log_record.h │ └── logging.c ├── memory_pool.c ├── string_tool.c ├── timestamp.c ├── unittest.c └── unittest │ ├── SConscript │ ├── cjson_unittest.c │ ├── memory_pool_unittest.c │ └── timestamp_unittest.c ├── test.sh └── tool └── process_status.stp /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/README.md -------------------------------------------------------------------------------- /SConstruct: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/SConstruct -------------------------------------------------------------------------------- /TODO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/TODO -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/_config.yml -------------------------------------------------------------------------------- /bin/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /include/simple/assert.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/include/simple/assert.h -------------------------------------------------------------------------------- /include/simple/atomic.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/include/simple/atomic.h -------------------------------------------------------------------------------- /include/simple/cJSON.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/include/simple/cJSON.h -------------------------------------------------------------------------------- /include/simple/collection/array_list.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/include/simple/collection/array_list.h -------------------------------------------------------------------------------- /include/simple/collection/blocking_queue.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/include/simple/collection/blocking_queue.h -------------------------------------------------------------------------------- /include/simple/collection/order_list.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/include/simple/collection/order_list.h -------------------------------------------------------------------------------- /include/simple/conf.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/include/simple/conf.h -------------------------------------------------------------------------------- /include/simple/counter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/include/simple/counter.h -------------------------------------------------------------------------------- /include/simple/event_loop.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/include/simple/event_loop.h -------------------------------------------------------------------------------- /include/simple/file/async_file.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/include/simple/file/async_file.h -------------------------------------------------------------------------------- /include/simple/io_thread.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/include/simple/io_thread.h -------------------------------------------------------------------------------- /include/simple/logging.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/include/simple/logging.h -------------------------------------------------------------------------------- /include/simple/memory_pool.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/include/simple/memory_pool.h -------------------------------------------------------------------------------- /include/simple/string_tool.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/include/simple/string_tool.h -------------------------------------------------------------------------------- /include/simple/timestamp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/include/simple/timestamp.h -------------------------------------------------------------------------------- /include/simple/unittest.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/include/simple/unittest.h -------------------------------------------------------------------------------- /sample/SConscript: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/sample/SConscript -------------------------------------------------------------------------------- /sample/io/SConscript: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/sample/io/SConscript -------------------------------------------------------------------------------- /sample/io/echo/SConscript: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/sample/io/echo/SConscript -------------------------------------------------------------------------------- /sample/io/echo/client.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/sample/io/echo/client.c -------------------------------------------------------------------------------- /sample/io/echo/server.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/sample/io/echo/server.c -------------------------------------------------------------------------------- /sample/io/time_event/SConscript: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/sample/io/time_event/SConscript -------------------------------------------------------------------------------- /sample/io/time_event/time_event_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/sample/io/time_event/time_event_test.c -------------------------------------------------------------------------------- /sample/logging/A0.LOG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/sample/logging/A0.LOG -------------------------------------------------------------------------------- /sample/logging/A1.LOG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/sample/logging/A1.LOG -------------------------------------------------------------------------------- /sample/logging/SConscript: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/sample/logging/SConscript -------------------------------------------------------------------------------- /sample/logging/logging.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/sample/logging/logging.conf -------------------------------------------------------------------------------- /sample/logging/logging_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/sample/logging/logging_test.c -------------------------------------------------------------------------------- /src/SConscript: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/src/SConscript -------------------------------------------------------------------------------- /src/assert.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/src/assert.c -------------------------------------------------------------------------------- /src/cjson/cJSON.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/src/cjson/cJSON.c -------------------------------------------------------------------------------- /src/collection/SConscript: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/src/collection/SConscript -------------------------------------------------------------------------------- /src/collection/array_list.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/src/collection/array_list.c -------------------------------------------------------------------------------- /src/collection/blocking_queue.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/src/collection/blocking_queue.c -------------------------------------------------------------------------------- /src/collection/order_list.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/src/collection/order_list.c -------------------------------------------------------------------------------- /src/collection/unittest/SConscript: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/src/collection/unittest/SConscript -------------------------------------------------------------------------------- /src/collection/unittest/array_list_unittest.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/src/collection/unittest/array_list_unittest.c -------------------------------------------------------------------------------- /src/conf.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/src/conf.c -------------------------------------------------------------------------------- /src/event_loop.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/src/event_loop.c -------------------------------------------------------------------------------- /src/file/async_file.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/src/file/async_file.c -------------------------------------------------------------------------------- /src/io_thread.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/src/io_thread.c -------------------------------------------------------------------------------- /src/logging/log_conf.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/src/logging/log_conf.c -------------------------------------------------------------------------------- /src/logging/log_conf.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/src/logging/log_conf.h -------------------------------------------------------------------------------- /src/logging/log_file_manager.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/src/logging/log_file_manager.c -------------------------------------------------------------------------------- /src/logging/log_file_manager.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/src/logging/log_file_manager.h -------------------------------------------------------------------------------- /src/logging/log_formatter.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/src/logging/log_formatter.c -------------------------------------------------------------------------------- /src/logging/log_formatter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/src/logging/log_formatter.h -------------------------------------------------------------------------------- /src/logging/log_record.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/src/logging/log_record.c -------------------------------------------------------------------------------- /src/logging/log_record.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/src/logging/log_record.h -------------------------------------------------------------------------------- /src/logging/logging.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/src/logging/logging.c -------------------------------------------------------------------------------- /src/memory_pool.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/src/memory_pool.c -------------------------------------------------------------------------------- /src/string_tool.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/src/string_tool.c -------------------------------------------------------------------------------- /src/timestamp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/src/timestamp.c -------------------------------------------------------------------------------- /src/unittest.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/src/unittest.c -------------------------------------------------------------------------------- /src/unittest/SConscript: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/src/unittest/SConscript -------------------------------------------------------------------------------- /src/unittest/cjson_unittest.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/src/unittest/cjson_unittest.c -------------------------------------------------------------------------------- /src/unittest/memory_pool_unittest.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/src/unittest/memory_pool_unittest.c -------------------------------------------------------------------------------- /src/unittest/timestamp_unittest.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/src/unittest/timestamp_unittest.c -------------------------------------------------------------------------------- /test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/test.sh -------------------------------------------------------------------------------- /tool/process_status.stp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/red-chen/simple/HEAD/tool/process_status.stp --------------------------------------------------------------------------------