MINIFI-183 Added civet 1.9.1 sources
Added onScheduled hook
Added initial two-way TLS-enabled ListenHTTP implementation
This closes #43.
Signed-off-by: Aldrin Piri <[email protected]>
Project: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/commit/a9485aeb
Tree: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/tree/a9485aeb
Diff: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/diff/a9485aeb
Branch: refs/heads/master
Commit: a9485aeb05defe3e54b179c3b5dcc1735486abcd
Parents: 3c874a0
Author: Andrew Christianson <[email protected]>
Authored: Mon Jan 23 12:53:27 2017 +0000
Committer: Aldrin Piri <[email protected]>
Committed: Wed Feb 22 15:47:02 2017 -0500
----------------------------------------------------------------------
CMakeLists.txt | 11 +-
LICENSE | 30 +-
libminifi/CMakeLists.txt | 7 +-
libminifi/include/EventDrivenSchedulingAgent.h | 2 +-
libminifi/include/FlowController.h | 1 +
libminifi/include/ListenHTTP.h | 116 +
libminifi/include/ProcessContext.h | 9 +-
libminifi/include/ProcessSession.h | 9 +-
libminifi/include/ProcessSessionFactory.h | 52 +
libminifi/include/Processor.h | 17 +-
libminifi/include/SchedulingAgent.h | 2 +-
libminifi/include/ThreadedSchedulingAgent.h | 4 +-
libminifi/include/TimerDrivenSchedulingAgent.h | 2 +-
libminifi/src/EventDrivenSchedulingAgent.cpp | 4 +-
libminifi/src/FlowController.cpp | 6 +-
libminifi/src/ListenHTTP.cpp | 395 +
libminifi/src/ProcessSessionFactory.cpp | 28 +
libminifi/src/Processor.cpp | 24 +-
libminifi/src/SchedulingAgent.cpp | 4 +-
libminifi/src/ThreadedSchedulingAgent.cpp | 15 +-
libminifi/src/TimerDrivenSchedulingAgent.cpp | 4 +-
main/CMakeLists.txt | 8 +-
thirdparty/civetweb-1.9.1/.clang-format | 32 +
thirdparty/civetweb-1.9.1/.gitattributes | 33 +
thirdparty/civetweb-1.9.1/.gitignore | 266 +
thirdparty/civetweb-1.9.1/.travis.yml | 1240 +
thirdparty/civetweb-1.9.1/CMakeLists.txt | 461 +
thirdparty/civetweb-1.9.1/CREDITS.md | 143 +
thirdparty/civetweb-1.9.1/LICENSE.md | 210 +
thirdparty/civetweb-1.9.1/Makefile.deprecated | 208 +
thirdparty/civetweb-1.9.1/Makefile.osx | 42 +
thirdparty/civetweb-1.9.1/Qt/CivetWeb.pro | 28 +
thirdparty/civetweb-1.9.1/README.md | 162 +
thirdparty/civetweb-1.9.1/RELEASE_NOTES.md | 344 +
.../civetweb-1.9.1/VisualStudio/buildRelease.pl | 71 +
.../civetweb-1.9.1/VisualStudio/civetweb.sln | 75 +
.../civetweb_lua/civetweb_lua.vcxproj | 215 +
.../civetweb_lua/civetweb_lua.vcxproj.filters | 78 +
.../civetweb_yassl/civetweb_yassl.sln | 36 +
.../civetweb_yassl/civetweb_yassl.vcxproj | 170 +
.../civetweb_yassl.vcxproj.filters | 40 +
.../civetweb_yassl/yassl_lib/yassl_lib.vcxproj | 185 +
.../yassl_lib/yassl_lib.vcxproj.filters | 124 +
.../duktape_lib/duktape_lib.vcxproj | 156 +
.../duktape_lib/duktape_lib.vcxproj.filters | 30 +
.../ex_embed_cpp/ex_embed_cpp.vcxproj | 162 +
.../ex_embed_cpp/ex_embed_cpp.vcxproj.filters | 36 +
.../ex_embedded_c/ex_embedded_c.vcxproj | 161 +
.../ex_embedded_c/ex_embedded_c.vcxproj.filters | 30 +
.../ex_websocket/ex_websocket.vcxproj | 162 +
.../ex_websocket/ex_websocket.vcxproj.filters | 36 +
.../ex_websocket_client.vcxproj | 160 +
.../ex_websocket_client.vcxproj.filters | 30 +
.../VisualStudio/lua_lib/lua_lib.vcxproj | 191 +
.../lua_lib/lua_lib.vcxproj.filters | 135 +
.../VisualStudio/unit_test/unit_test.vcxproj | 104 +
.../unit_test/unit_test.vcxproj.filters | 66 +
.../VisualStudio/upload/upload.vcxproj | 160 +
.../VisualStudio/upload/upload.vcxproj.filters | 30 +
thirdparty/civetweb-1.9.1/_config.yml | 1 +
thirdparty/civetweb-1.9.1/appveyor.yml | 252 +
thirdparty/civetweb-1.9.1/build.cmd | 866 +
.../ci/test/01_basic/basic_spec.lua | 35 +
.../01_basic_test_dir/git_keep_empty_dir | 0
.../ci/test/01_basic/docroot/01_basic_test_file | 0
thirdparty/civetweb-1.9.1/ci/test/README.md | 34 +
thirdparty/civetweb-1.9.1/ci/test/civet.lua | 42 +
.../civetweb-1.9.1/ci/travis/install_rocks.sh | 14 +
thirdparty/civetweb-1.9.1/ci/travis/lua_env.sh | 5 +
thirdparty/civetweb-1.9.1/ci/travis/platform.sh | 15 +
.../civetweb-1.9.1/ci/travis/run_ci_tests.sh | 7 +
.../civetweb-1.9.1/ci/travis/setup_lua.sh | 61 +
.../civetweb-1.9.1/cmake/AddCCompilerFlag.cmake | 38 +
.../cmake/AddCXXCompilerFlag.cmake | 38 +
.../cmake/DetermineTargetArchitecture.cmake | 47 +
thirdparty/civetweb-1.9.1/cmake/FindLibDl.cmake | 46 +
thirdparty/civetweb-1.9.1/cmake/FindLibM.cmake | 47 +
thirdparty/civetweb-1.9.1/cmake/FindLibRt.cmake | 46 +
.../civetweb-1.9.1/cmake/FindWinSock.cmake | 102 +
...2fe8888aacfe784476112edd3878256d2e30bc.patch | 31 +
.../civetweb-1.9.1/cmake/check/patch.cmake | 12 +
.../civetweb-1.9.1/contrib/buildroot/Config.in | 26 +
.../contrib/buildroot/civetweb.mk | 55 +
.../distribution/arch/PKGBUILD.git.example | 42 +
.../distribution/arch/civetweb.service | 9 +
thirdparty/civetweb-1.9.1/docs/APIReference.md | 78 +
thirdparty/civetweb-1.9.1/docs/Building.md | 191 +
thirdparty/civetweb-1.9.1/docs/Contribution.md | 10 +
thirdparty/civetweb-1.9.1/docs/Embedding.md | 200 +
thirdparty/civetweb-1.9.1/docs/Installing.md | 36 +
thirdparty/civetweb-1.9.1/docs/OpenSSL.md | 153 +
thirdparty/civetweb-1.9.1/docs/README.md | 40 +
thirdparty/civetweb-1.9.1/docs/UserManual.md | 708 +
thirdparty/civetweb-1.9.1/docs/_config.yml | 1 +
.../civetweb-1.9.1/docs/api/client_cert.md | 21 +
.../civetweb-1.9.1/docs/api/mg_callbacks.md | 60 +
.../civetweb-1.9.1/docs/api/mg_check_feature.md | 40 +
.../docs/api/mg_client_options.md | 21 +
.../docs/api/mg_close_connection.md | 21 +
.../docs/api/mg_connect_client.md | 29 +
.../docs/api/mg_connect_client_secure.md | 30 +
.../docs/api/mg_connect_websocket_client.md | 36 +
thirdparty/civetweb-1.9.1/docs/api/mg_cry.md | 23 +
.../civetweb-1.9.1/docs/api/mg_download.md | 37 +
.../docs/api/mg_form_data_handler.md | 36 +
.../docs/api/mg_get_builtin_mime_type.md | 24 +
.../civetweb-1.9.1/docs/api/mg_get_context.md | 24 +
.../civetweb-1.9.1/docs/api/mg_get_cookie.md | 29 +
.../civetweb-1.9.1/docs/api/mg_get_header.md | 22 +
.../civetweb-1.9.1/docs/api/mg_get_option.md | 24 +
.../civetweb-1.9.1/docs/api/mg_get_ports.md | 31 +
.../docs/api/mg_get_request_info.md | 23 +
.../civetweb-1.9.1/docs/api/mg_get_response.md | 29 +
.../docs/api/mg_get_response_code_text.md | 25 +
.../docs/api/mg_get_server_ports.md | 28 +
.../docs/api/mg_get_user_connection_data.md | 23 +
.../civetweb-1.9.1/docs/api/mg_get_user_data.md | 23 +
.../docs/api/mg_get_valid_option_names.md | 24 +
.../docs/api/mg_get_valid_options.md | 22 +
.../civetweb-1.9.1/docs/api/mg_get_var.md | 30 +
.../civetweb-1.9.1/docs/api/mg_get_var2.md | 31 +
.../docs/api/mg_handle_form_request.md | 24 +
thirdparty/civetweb-1.9.1/docs/api/mg_header.md | 18 +
.../docs/api/mg_lock_connection.md | 26 +
.../civetweb-1.9.1/docs/api/mg_lock_context.md | 23 +
thirdparty/civetweb-1.9.1/docs/api/mg_md5.md | 24 +
.../docs/api/mg_modify_passwords_file.md | 28 +
thirdparty/civetweb-1.9.1/docs/api/mg_option.md | 31 +
thirdparty/civetweb-1.9.1/docs/api/mg_printf.md | 27 +
thirdparty/civetweb-1.9.1/docs/api/mg_read.md | 26 +
.../civetweb-1.9.1/docs/api/mg_request_info.md | 34 +
.../civetweb-1.9.1/docs/api/mg_send_file.md | 25 +
.../docs/api/mg_send_mime_file.md | 27 +
.../docs/api/mg_send_mime_file2.md | 30 +
.../civetweb-1.9.1/docs/api/mg_server_ports.md | 24 +
.../docs/api/mg_set_auth_handler.md | 30 +
.../docs/api/mg_set_request_handler.md | 26 +
.../docs/api/mg_set_user_connection_data.md | 22 +
.../docs/api/mg_set_websocket_handler.md | 30 +
thirdparty/civetweb-1.9.1/docs/api/mg_start.md | 39 +
.../civetweb-1.9.1/docs/api/mg_start_thread.md | 26 +
thirdparty/civetweb-1.9.1/docs/api/mg_stop.md | 22 +
.../civetweb-1.9.1/docs/api/mg_store_body.md | 24 +
.../civetweb-1.9.1/docs/api/mg_strcasecmp.md | 24 +
.../civetweb-1.9.1/docs/api/mg_strncasecmp.md | 25 +
.../docs/api/mg_unlock_connection.md | 27 +
.../docs/api/mg_unlock_context.md | 23 +
thirdparty/civetweb-1.9.1/docs/api/mg_upload.md | 22 +
.../civetweb-1.9.1/docs/api/mg_url_decode.md | 27 +
.../civetweb-1.9.1/docs/api/mg_url_encode.md | 25 +
.../civetweb-1.9.1/docs/api/mg_version.md | 19 +
.../docs/api/mg_websocket_client_write.md | 32 +
.../docs/api/mg_websocket_write.md | 34 +
thirdparty/civetweb-1.9.1/docs/api/mg_write.md | 29 +
thirdparty/civetweb-1.9.1/docs/yaSSL.md | 87 +
thirdparty/civetweb-1.9.1/examples/README.md | 8 +
.../examples/_obsolete/chat/chat.c | 403 +
.../examples/_obsolete/docroot/favicon.ico | Bin 0 -> 1406 bytes
.../examples/_obsolete/docroot/index.html | 73 +
.../examples/_obsolete/docroot/jquery.js | 154 +
.../examples/_obsolete/docroot/login.html | 43 +
.../examples/_obsolete/docroot/logo.png | Bin 0 -> 1601 bytes
.../examples/_obsolete/docroot/main.js | 107 +
.../examples/_obsolete/docroot/prime_numbers.lp | 46 +
.../examples/_obsolete/docroot/style.css | 154 +
.../examples/_obsolete/hello/hello.c | 53 +
.../examples/_obsolete/lua/lua_dll.c | 21 +
.../examples/_obsolete/post/post.c | 58 +
.../examples/_obsolete/upload/upload.c | 110 +
.../_obsolete/websocket/WebSockCallbacks.c | 225 +
.../_obsolete/websocket/WebSockCallbacks.h | 44 +
.../examples/_obsolete/websocket/websock.htm | 55 +
.../examples/_obsolete/websocket/websocket.c | 65 +
.../_obsolete/websocket_client/ssl/server.crt | 13 +
.../_obsolete/websocket_client/ssl/server.csr | 11 +
.../_obsolete/websocket_client/ssl/server.key | 15 +
.../_obsolete/websocket_client/ssl/server.pem | 28 +
.../websocket_client/websocket_client.c | 421 +
.../_obsolete/ws_server/docroot/index.html | 316 +
.../examples/_obsolete/ws_server/ws_server.c | 271 +
.../examples/embedded_c/embedded_c.c | 922 +
.../examples/embedded_cpp/embedded_cpp.cpp | 316 +
thirdparty/civetweb-1.9.1/format.bat | 33 +
thirdparty/civetweb-1.9.1/include/CivetServer.h | 597 +
thirdparty/civetweb-1.9.1/include/civetweb.h | 1121 +
thirdparty/civetweb-1.9.1/mingw.cmd | 884 +
thirdparty/civetweb-1.9.1/resources/Info.plist | 21 +
.../resources/Makefile.in-duktape | 60 +
.../civetweb-1.9.1/resources/Makefile.in-lua | 148 +
.../civetweb-1.9.1/resources/Makefile.in-os | 22 +
.../civetweb-1.9.1/resources/cert/client.crt | 14 +
.../civetweb-1.9.1/resources/cert/client.csr | 11 +
.../civetweb-1.9.1/resources/cert/client.key | 15 +
.../civetweb-1.9.1/resources/cert/client.pem | 29 +
.../civetweb-1.9.1/resources/cert/make_cert.bat | 22 +
.../civetweb-1.9.1/resources/cert/make_certs | 31 +
.../civetweb-1.9.1/resources/cert/server.crt | 30 +
.../civetweb-1.9.1/resources/cert/server.csr | 28 +
.../civetweb-1.9.1/resources/cert/server.key | 51 +
.../civetweb-1.9.1/resources/cert/server.pem | 81 +
.../civetweb-1.9.1/resources/civetweb.conf | 32 +
.../civetweb-1.9.1/resources/civetweb.icns | Bin 0 -> 13635 bytes
.../civetweb-1.9.1/resources/civetweb.psd | Bin 0 -> 9365069 bytes
.../civetweb-1.9.1/resources/civetweb_16x16.png | Bin 0 -> 1691 bytes
.../resources/[email protected] | Bin 0 -> 1624 bytes
.../civetweb-1.9.1/resources/civetweb_22x22.png | Bin 0 -> 1857 bytes
.../resources/[email protected] | Bin 0 -> 2728 bytes
.../civetweb-1.9.1/resources/civetweb_32x32.png | Bin 0 -> 2193 bytes
.../resources/[email protected] | Bin 0 -> 3923 bytes
.../civetweb-1.9.1/resources/civetweb_64x64.png | Bin 0 -> 3923 bytes
.../resources/[email protected] | Bin 0 -> 10178 bytes
thirdparty/civetweb-1.9.1/resources/cleanup.lua | 92 +
.../civetweb-1.9.1/resources/coverity_check.sh | 33 +
.../civetweb-1.9.1/resources/duktape-logo.png | Bin 0 -> 1741 bytes
.../civetweb-1.9.1/resources/itworks.html | 23 +
.../civetweb-1.9.1/resources/jni/Android.mk | 6 +
.../civetweb-1.9.1/resources/lua-logo.jpg | Bin 0 -> 2799 bytes
.../resources/luafilesystem-logo.jpg | Bin 0 -> 8209 bytes
.../civetweb-1.9.1/resources/luasqlite-logo.jpg | Bin 0 -> 6534 bytes
.../civetweb-1.9.1/resources/luaxml-logo.jpg | Bin 0 -> 6741 bytes
thirdparty/civetweb-1.9.1/resources/mingw.bat | 15 +
thirdparty/civetweb-1.9.1/resources/res.rc | 1 +
.../civetweb-1.9.1/resources/sqlite3-logo.jpg | Bin 0 -> 1673 bytes
.../civetweb-1.9.1/resources/ssl_cert.pem | 50 +
thirdparty/civetweb-1.9.1/resources/systray.ico | Bin 0 -> 15086 bytes
thirdparty/civetweb-1.9.1/src/CMakeLists.txt | 291 +
thirdparty/civetweb-1.9.1/src/CivetServer.cpp | 594 +
thirdparty/civetweb-1.9.1/src/civetweb.c | 14894 ++
.../civetweb-1.9.1/src/civetweb_private_lua.h | 11 +
thirdparty/civetweb-1.9.1/src/file_ops.inl | 1 +
thirdparty/civetweb-1.9.1/src/handle_form.inl | 810 +
thirdparty/civetweb-1.9.1/src/main.c | 2633 +
thirdparty/civetweb-1.9.1/src/md5.inl | 468 +
thirdparty/civetweb-1.9.1/src/mod_duktape.inl | 250 +
thirdparty/civetweb-1.9.1/src/mod_lua.inl | 2000 +
thirdparty/civetweb-1.9.1/src/sha1.inl | 323 +
.../civetweb-1.9.1/src/third_party/LuaXML.lua | 116 +
.../civetweb-1.9.1/src/third_party/LuaXML_lib.c | 476 +
.../src/third_party/civetweb_lua.h | 73 +
.../src/third_party/duktape-1.5.2/AUTHORS.rst | 72 +
.../src/third_party/duktape-1.5.2/LICENSE.txt | 25 +
.../third_party/duktape-1.5.2/Makefile.cmdline | 34 +
.../third_party/duktape-1.5.2/Makefile.codepage | 4 +
.../third_party/duktape-1.5.2/Makefile.coffee | 4 +
.../third_party/duktape-1.5.2/Makefile.dukdebug | 26 +
.../src/third_party/duktape-1.5.2/Makefile.eval | 7 +
.../duktape-1.5.2/Makefile.eventloop | 22 +
.../third_party/duktape-1.5.2/Makefile.hello | 35 +
.../third_party/duktape-1.5.2/Makefile.jxpretty | 8 +
.../third_party/duktape-1.5.2/Makefile.sandbox | 7 +
.../duktape-1.5.2/Makefile.sharedlibrary | 71 +
.../src/third_party/duktape-1.5.2/README.rst | 110 +
.../third_party/duktape-1.5.2/config/README.rst | 39 +
.../config/duk_config.h-modular-dll | 3415 +
.../config/duk_config.h-modular-static | 3415 +
.../duktape-1.5.2/config/genconfig.py | 1537 +
.../config/genconfig_metadata.tar.gz | Bin 0 -> 71815 bytes
.../duktape-1.5.2/debugger/README.rst | 384 +
.../duktape-1.5.2/debugger/duk_classnames.yaml | 32 +
.../duktape-1.5.2/debugger/duk_debug.js | 2473 +
.../duktape-1.5.2/debugger/duk_debug_meta.json | 1497 +
.../duktape-1.5.2/debugger/duk_debug_proxy.js | 1029 +
.../debugger/duk_debugcommands.yaml | 52 +
.../duktape-1.5.2/debugger/duk_debugerrors.yaml | 6 +
.../duktape-1.5.2/debugger/duk_opcodes.yaml | 658 +
.../duktape-1.5.2/debugger/merge_debug_meta.py | 32 +
.../duktape-1.5.2/debugger/package.json | 27 +
.../duktape-1.5.2/debugger/static/index.html | 96 +
.../duktape-1.5.2/debugger/static/style.css | 516 +
.../duktape-1.5.2/debugger/static/webui.js | 785 +
.../duktape-1.5.2/duk_build_meta.json | 1349 +
.../duktape-1.5.2/examples/README.rst | 10 +
.../examples/alloc-hybrid/README.rst | 10 +
.../examples/alloc-hybrid/duk_alloc_hybrid.c | 293 +
.../examples/alloc-hybrid/duk_alloc_hybrid.h | 11 +
.../examples/alloc-logging/README.rst | 7 +
.../examples/alloc-logging/duk_alloc_logging.c | 138 +
.../examples/alloc-logging/duk_alloc_logging.h | 10 +
.../examples/alloc-logging/log2gnuplot.py | 41 +
.../examples/alloc-torture/README.rst | 10 +
.../examples/alloc-torture/duk_alloc_torture.c | 182 +
.../examples/alloc-torture/duk_alloc_torture.h | 10 +
.../duktape-1.5.2/examples/cmdline/README.rst | 6 +
.../examples/cmdline/duk_cmdline.c | 1463 +
.../examples/cmdline/duk_cmdline_ajduk.c | 1008 +
.../examples/codepage-conv/README.rst | 8 +
.../examples/codepage-conv/duk_codepage_conv.c | 54 +
.../examples/codepage-conv/duk_codepage_conv.h | 8 +
.../duktape-1.5.2/examples/codepage-conv/test.c | 286 +
.../duktape-1.5.2/examples/coffee/README.rst | 10 +
.../examples/coffee/globals.coffee | 7 +
.../duktape-1.5.2/examples/coffee/hello.coffee | 2 +
.../duktape-1.5.2/examples/coffee/mandel.coffee | 28 +
.../examples/cpp-exceptions/README.rst | 29 +
.../examples/cpp-exceptions/cpp_exceptions.cpp | 274 +
.../examples/debug-trans-dvalue/README.rst | 8 +
.../debug-trans-dvalue/duk_trans_dvalue.c | 1239 +
.../debug-trans-dvalue/duk_trans_dvalue.h | 113 +
.../examples/debug-trans-dvalue/test.c | 236 +
.../examples/debug-trans-socket/README.rst | 17 +
.../debug-trans-socket/duk_trans_socket.h | 15 +
.../debug-trans-socket/duk_trans_socket_unix.c | 340 +
.../duk_trans_socket_windows.c | 414 +
.../examples/dummy-date-provider/README.rst | 5 +
.../dummy-date-provider/dummy_date_provider.c | 27 +
.../duktape-1.5.2/examples/eval/README.rst | 5 +
.../duktape-1.5.2/examples/eval/eval.c | 48 +
.../duktape-1.5.2/examples/eventloop/README.rst | 76 +
.../examples/eventloop/basic-test.js | 17 +
.../examples/eventloop/c_eventloop.c | 618 +
.../examples/eventloop/c_eventloop.js | 179 +
.../examples/eventloop/client-socket-test.js | 24 +
.../examples/eventloop/curses-timers.js | 79 +
.../examples/eventloop/ecma_eventloop.js | 466 +
.../duktape-1.5.2/examples/eventloop/fileio.c | 69 +
.../duktape-1.5.2/examples/eventloop/main.c | 256 +
.../duktape-1.5.2/examples/eventloop/ncurses.c | 105 +
.../duktape-1.5.2/examples/eventloop/poll.c | 111 +
.../examples/eventloop/server-socket-test.js | 34 +
.../duktape-1.5.2/examples/eventloop/socket.c | 286 +
.../duktape-1.5.2/examples/guide/README.rst | 5 +
.../duktape-1.5.2/examples/guide/fib.js | 16 +
.../duktape-1.5.2/examples/guide/prime.js | 32 +
.../duktape-1.5.2/examples/guide/primecheck.c | 52 +
.../duktape-1.5.2/examples/guide/process.js | 12 +
.../duktape-1.5.2/examples/guide/processlines.c | 59 +
.../duktape-1.5.2/examples/guide/uppercase.c | 42 +
.../duktape-1.5.2/examples/hello/README.rst | 5 +
.../duktape-1.5.2/examples/hello/hello.c | 38 +
.../duktape-1.5.2/examples/jxpretty/README.rst | 5 +
.../duktape-1.5.2/examples/jxpretty/jxpretty.c | 63 +
.../duktape-1.5.2/examples/sandbox/README.rst | 5 +
.../duktape-1.5.2/examples/sandbox/sandbox.c | 252 +
.../third_party/duktape-1.5.2/extras/README.rst | 13 +
.../src/third_party/duktape-1.5.2/license.spdx | 3933 +
.../duktape-1.5.2/licenses/commonjs.txt | 2 +
.../third_party/duktape-1.5.2/licenses/lua.txt | 1 +
.../duktape-1.5.2/licenses/murmurhash2.txt | 21 +
.../src/third_party/duktape-1.5.2/mandel.js | 53 +
.../duktape-1.5.2/polyfills/console-minimal.js | 20 +
.../duktape-error-setter-nonwritable.js | 20 +
.../polyfills/duktape-error-setter-writable.js | 19 +
.../polyfills/duktape-isfastint.js | 38 +
.../duktape-1.5.2/polyfills/object-assign.js | 45 +
.../polyfills/object-prototype-definegetter.js | 11 +
.../polyfills/object-prototype-definesetter.js | 11 +
.../duktape-1.5.2/polyfills/performance-now.js | 25 +
.../duktape-1.5.2/src-noline/duk_config.h | 3804 +
.../duktape-1.5.2/src-noline/duktape.c | 86570 +++++++++
.../duktape-1.5.2/src-noline/duktape.h | 1567 +
.../duktape-1.5.2/src-noline/metadata.json | 629 +
.../src-separate/duk_alloc_default.c | 34 +
.../duktape-1.5.2/src-separate/duk_api_buffer.c | 73 +
.../src-separate/duk_api_bytecode.c | 727 +
.../duktape-1.5.2/src-separate/duk_api_call.c | 555 +
.../duktape-1.5.2/src-separate/duk_api_codec.c | 638 +
.../src-separate/duk_api_compile.c | 194 +
.../duktape-1.5.2/src-separate/duk_api_debug.c | 263 +
.../duktape-1.5.2/src-separate/duk_api_heap.c | 134 +
.../src-separate/duk_api_internal.h | 194 +
.../src-separate/duk_api_logging.c | 52 +
.../duktape-1.5.2/src-separate/duk_api_memory.c | 103 +
.../duktape-1.5.2/src-separate/duk_api_object.c | 610 +
.../duktape-1.5.2/src-separate/duk_api_stack.c | 4658 +
.../duktape-1.5.2/src-separate/duk_api_string.c | 331 +
.../duktape-1.5.2/src-separate/duk_api_var.c | 86 +
.../duktape-1.5.2/src-separate/duk_bi_array.c | 1445 +
.../duktape-1.5.2/src-separate/duk_bi_boolean.c | 68 +
.../duktape-1.5.2/src-separate/duk_bi_buffer.c | 2882 +
.../duktape-1.5.2/src-separate/duk_bi_date.c | 1728 +
.../src-separate/duk_bi_date_unix.c | 309 +
.../src-separate/duk_bi_date_windows.c | 98 +
.../duktape-1.5.2/src-separate/duk_bi_duktape.c | 321 +
.../duktape-1.5.2/src-separate/duk_bi_error.c | 383 +
.../src-separate/duk_bi_function.c | 346 +
.../duktape-1.5.2/src-separate/duk_bi_global.c | 1288 +
.../duktape-1.5.2/src-separate/duk_bi_json.c | 3143 +
.../duktape-1.5.2/src-separate/duk_bi_logger.c | 300 +
.../duktape-1.5.2/src-separate/duk_bi_math.c | 348 +
.../duktape-1.5.2/src-separate/duk_bi_number.c | 240 +
.../duktape-1.5.2/src-separate/duk_bi_object.c | 577 +
.../duktape-1.5.2/src-separate/duk_bi_pointer.c | 74 +
.../duktape-1.5.2/src-separate/duk_bi_protos.h | 69 +
.../duktape-1.5.2/src-separate/duk_bi_proxy.c | 66 +
.../duktape-1.5.2/src-separate/duk_bi_regexp.c | 209 +
.../duktape-1.5.2/src-separate/duk_bi_string.c | 1314 +
.../duktape-1.5.2/src-separate/duk_bi_thread.c | 305 +
.../duktape-1.5.2/src-separate/duk_bi_thrower.c | 10 +
.../duktape-1.5.2/src-separate/duk_builtins.c | 776 +
.../duktape-1.5.2/src-separate/duk_builtins.h | 854 +
.../duktape-1.5.2/src-separate/duk_config.h | 3804 +
.../duktape-1.5.2/src-separate/duk_debug.h | 185 +
.../src-separate/duk_debug_fixedbuffer.c | 69 +
.../duktape-1.5.2/src-separate/duk_debug_heap.c | 247 +
.../src-separate/duk_debug_macros.c | 144 +
.../src-separate/duk_debug_vsnprintf.c | 1049 +
.../duktape-1.5.2/src-separate/duk_debugger.c | 2773 +
.../duktape-1.5.2/src-separate/duk_debugger.h | 144 +
.../duktape-1.5.2/src-separate/duk_error.h | 439 +
.../src-separate/duk_error_augment.c | 567 +
.../src-separate/duk_error_longjmp.c | 45 +
.../src-separate/duk_error_macros.c | 163 +
.../duktape-1.5.2/src-separate/duk_error_misc.c | 132 +
.../src-separate/duk_error_throw.c | 181 +
.../duktape-1.5.2/src-separate/duk_exception.h | 18 +
.../duktape-1.5.2/src-separate/duk_forwdecl.h | 122 +
.../duktape-1.5.2/src-separate/duk_hbuffer.h | 328 +
.../src-separate/duk_hbuffer_alloc.c | 132 +
.../src-separate/duk_hbuffer_ops.c | 82 +
.../src-separate/duk_hbufferobject.h | 133 +
.../src-separate/duk_hbufferobject_misc.c | 20 +
.../src-separate/duk_hcompiledfunction.h | 239 +
.../duktape-1.5.2/src-separate/duk_heap.h | 596 +
.../duktape-1.5.2/src-separate/duk_heap_alloc.c | 1042 +
.../src-separate/duk_heap_hashstring.c | 120 +
.../src-separate/duk_heap_markandsweep.c | 1421 +
.../src-separate/duk_heap_memory.c | 384 +
.../duktape-1.5.2/src-separate/duk_heap_misc.c | 79 +
.../src-separate/duk_heap_refcount.c | 614 +
.../src-separate/duk_heap_stringcache.c | 298 +
.../src-separate/duk_heap_stringtable.c | 1181 +
.../duktape-1.5.2/src-separate/duk_heaphdr.h | 750 +
.../src-separate/duk_hnativefunction.h | 32 +
.../duktape-1.5.2/src-separate/duk_hobject.h | 926 +
.../src-separate/duk_hobject_alloc.c | 192 +
.../src-separate/duk_hobject_class.c | 132 +
.../src-separate/duk_hobject_enum.c | 626 +
.../src-separate/duk_hobject_finalizer.c | 110 +
.../src-separate/duk_hobject_misc.c | 52 +
.../src-separate/duk_hobject_pc2line.c | 250 +
.../src-separate/duk_hobject_props.c | 5999 +
.../duktape-1.5.2/src-separate/duk_hstring.h | 219 +
.../src-separate/duk_hstring_misc.c | 45 +
.../duktape-1.5.2/src-separate/duk_hthread.h | 380 +
.../src-separate/duk_hthread_alloc.c | 95 +
.../src-separate/duk_hthread_builtins.c | 836 +
.../src-separate/duk_hthread_misc.c | 108 +
.../src-separate/duk_hthread_stacks.c | 476 +
.../src-separate/duk_initjs_min.js | 1 +
.../duktape-1.5.2/src-separate/duk_internal.h | 79 +
.../duktape-1.5.2/src-separate/duk_jmpbuf.h | 24 +
.../duktape-1.5.2/src-separate/duk_js.h | 99 +
.../src-separate/duk_js_bytecode.h | 205 +
.../duktape-1.5.2/src-separate/duk_js_call.c | 2727 +
.../src-separate/duk_js_compiler.c | 7865 +
.../src-separate/duk_js_compiler.h | 227 +
.../src-separate/duk_js_executor.c | 4507 +
.../duktape-1.5.2/src-separate/duk_js_ops.c | 1370 +
.../duktape-1.5.2/src-separate/duk_js_var.c | 1821 +
.../duktape-1.5.2/src-separate/duk_json.h | 68 +
.../duktape-1.5.2/src-separate/duk_lexer.c | 2067 +
.../duktape-1.5.2/src-separate/duk_lexer.h | 432 +
.../duktape-1.5.2/src-separate/duk_numconv.c | 2266 +
.../duktape-1.5.2/src-separate/duk_numconv.h | 90 +
.../duktape-1.5.2/src-separate/duk_regexp.h | 82 +
.../src-separate/duk_regexp_compiler.c | 1072 +
.../src-separate/duk_regexp_executor.c | 1008 +
.../src-separate/duk_replacements.c | 82 +
.../src-separate/duk_replacements.h | 28 +
.../duktape-1.5.2/src-separate/duk_selftest.c | 373 +
.../duktape-1.5.2/src-separate/duk_selftest.h | 12 +
.../duktape-1.5.2/src-separate/duk_strings.c | 115 +
.../duktape-1.5.2/src-separate/duk_strings.h | 252 +
.../duktape-1.5.2/src-separate/duk_tval.c | 138 +
.../duktape-1.5.2/src-separate/duk_tval.h | 518 +
.../duktape-1.5.2/src-separate/duk_unicode.h | 267 +
.../src-separate/duk_unicode_support.c | 1173 +
.../src-separate/duk_unicode_tables.c | 6119 +
.../duktape-1.5.2/src-separate/duk_util.h | 530 +
.../src-separate/duk_util_bitdecoder.c | 70 +
.../src-separate/duk_util_bitencoder.c | 43 +
.../src-separate/duk_util_bufwriter.c | 360 +
.../src-separate/duk_util_hashbytes.c | 57 +
.../src-separate/duk_util_hashprime.c | 77 +
.../duktape-1.5.2/src-separate/duk_util_misc.c | 222 +
.../src-separate/duk_util_tinyrandom.c | 63 +
.../duktape-1.5.2/src-separate/duktape.h | 1567 +
.../third_party/duktape-1.5.2/src/duk_config.h | 3804 +
.../src/third_party/duktape-1.5.2/src/duktape.c | 86695 +++++++++
.../src/third_party/duktape-1.5.2/src/duktape.h | 1567 +
.../third_party/duktape-1.5.2/src/metadata.json | 629 +
thirdparty/civetweb-1.9.1/src/third_party/lfs.c | 900 +
thirdparty/civetweb-1.9.1/src/third_party/lfs.h | 32 +
.../civetweb-1.9.1/src/third_party/lsqlite3.c | 2214 +
.../src/third_party/lua-5.1.5/COPYRIGHT | 34 +
.../src/third_party/lua-5.1.5/HISTORY | 183 +
.../src/third_party/lua-5.1.5/INSTALL | 99 +
.../src/third_party/lua-5.1.5/README | 37 +
.../src/third_party/lua-5.1.5/doc/contents.html | 497 +
.../src/third_party/lua-5.1.5/doc/cover.png | Bin 0 -> 3305 bytes
.../src/third_party/lua-5.1.5/doc/logo.gif | Bin 0 -> 4232 bytes
.../src/third_party/lua-5.1.5/doc/lua.1 | 163 +
.../src/third_party/lua-5.1.5/doc/lua.css | 83 +
.../src/third_party/lua-5.1.5/doc/lua.html | 172 +
.../src/third_party/lua-5.1.5/doc/luac.1 | 136 +
.../src/third_party/lua-5.1.5/doc/luac.html | 145 +
.../src/third_party/lua-5.1.5/doc/manual.css | 24 +
.../src/third_party/lua-5.1.5/doc/manual.html | 8804 +
.../src/third_party/lua-5.1.5/doc/readme.html | 40 +
.../src/third_party/lua-5.1.5/etc/README | 37 +
.../src/third_party/lua-5.1.5/etc/all.c | 38 +
.../src/third_party/lua-5.1.5/etc/lua.hpp | 9 +
.../src/third_party/lua-5.1.5/etc/lua.ico | Bin 0 -> 1078 bytes
.../src/third_party/lua-5.1.5/etc/lua.pc | 31 +
.../src/third_party/lua-5.1.5/etc/luavs.bat | 28 +
.../src/third_party/lua-5.1.5/etc/min.c | 39 +
.../src/third_party/lua-5.1.5/etc/noparser.c | 50 +
.../src/third_party/lua-5.1.5/etc/strict.lua | 41 +
.../src/third_party/lua-5.1.5/src/lapi.c | 1087 +
.../src/third_party/lua-5.1.5/src/lapi.h | 16 +
.../src/third_party/lua-5.1.5/src/lauxlib.c | 652 +
.../src/third_party/lua-5.1.5/src/lauxlib.h | 174 +
.../src/third_party/lua-5.1.5/src/lbaselib.c | 653 +
.../src/third_party/lua-5.1.5/src/lcode.c | 831 +
.../src/third_party/lua-5.1.5/src/lcode.h | 76 +
.../src/third_party/lua-5.1.5/src/ldblib.c | 398 +
.../src/third_party/lua-5.1.5/src/ldebug.c | 638 +
.../src/third_party/lua-5.1.5/src/ldebug.h | 33 +
.../src/third_party/lua-5.1.5/src/ldo.c | 519 +
.../src/third_party/lua-5.1.5/src/ldo.h | 57 +
.../src/third_party/lua-5.1.5/src/ldump.c | 164 +
.../src/third_party/lua-5.1.5/src/lfunc.c | 174 +
.../src/third_party/lua-5.1.5/src/lfunc.h | 34 +
.../src/third_party/lua-5.1.5/src/lgc.c | 710 +
.../src/third_party/lua-5.1.5/src/lgc.h | 110 +
.../src/third_party/lua-5.1.5/src/linit.c | 38 +
.../src/third_party/lua-5.1.5/src/liolib.c | 556 +
.../src/third_party/lua-5.1.5/src/llex.c | 463 +
.../src/third_party/lua-5.1.5/src/llex.h | 81 +
.../src/third_party/lua-5.1.5/src/llimits.h | 128 +
.../src/third_party/lua-5.1.5/src/lmathlib.c | 263 +
.../src/third_party/lua-5.1.5/src/lmem.c | 86 +
.../src/third_party/lua-5.1.5/src/lmem.h | 49 +
.../src/third_party/lua-5.1.5/src/loadlib.c | 666 +
.../src/third_party/lua-5.1.5/src/lobject.c | 214 +
.../src/third_party/lua-5.1.5/src/lobject.h | 381 +
.../src/third_party/lua-5.1.5/src/lopcodes.c | 102 +
.../src/third_party/lua-5.1.5/src/lopcodes.h | 268 +
.../src/third_party/lua-5.1.5/src/loslib.c | 243 +
.../src/third_party/lua-5.1.5/src/lparser.c | 1339 +
.../src/third_party/lua-5.1.5/src/lparser.h | 82 +
.../src/third_party/lua-5.1.5/src/lstate.c | 214 +
.../src/third_party/lua-5.1.5/src/lstate.h | 169 +
.../src/third_party/lua-5.1.5/src/lstring.c | 111 +
.../src/third_party/lua-5.1.5/src/lstring.h | 31 +
.../src/third_party/lua-5.1.5/src/lstrlib.c | 871 +
.../src/third_party/lua-5.1.5/src/ltable.c | 588 +
.../src/third_party/lua-5.1.5/src/ltable.h | 40 +
.../src/third_party/lua-5.1.5/src/ltablib.c | 287 +
.../src/third_party/lua-5.1.5/src/ltm.c | 75 +
.../src/third_party/lua-5.1.5/src/ltm.h | 54 +
.../src/third_party/lua-5.1.5/src/lua.c | 392 +
.../src/third_party/lua-5.1.5/src/lua.h | 388 +
.../src/third_party/lua-5.1.5/src/luac.c | 200 +
.../src/third_party/lua-5.1.5/src/luaconf.h | 763 +
.../src/third_party/lua-5.1.5/src/lualib.h | 53 +
.../src/third_party/lua-5.1.5/src/lundump.c | 227 +
.../src/third_party/lua-5.1.5/src/lundump.h | 36 +
.../src/third_party/lua-5.1.5/src/lvm.c | 767 +
.../src/third_party/lua-5.1.5/src/lvm.h | 36 +
.../src/third_party/lua-5.1.5/src/lzio.c | 82 +
.../src/third_party/lua-5.1.5/src/lzio.h | 67 +
.../src/third_party/lua-5.1.5/src/print.c | 227 +
.../src/third_party/lua-5.1.5/test/README | 26 +
.../src/third_party/lua-5.1.5/test/bisect.lua | 27 +
.../src/third_party/lua-5.1.5/test/cf.lua | 16 +
.../src/third_party/lua-5.1.5/test/echo.lua | 5 +
.../src/third_party/lua-5.1.5/test/env.lua | 7 +
.../third_party/lua-5.1.5/test/factorial.lua | 32 +
.../src/third_party/lua-5.1.5/test/fib.lua | 40 +
.../src/third_party/lua-5.1.5/test/fibfor.lua | 13 +
.../src/third_party/lua-5.1.5/test/globals.lua | 13 +
.../src/third_party/lua-5.1.5/test/hello.lua | 3 +
.../src/third_party/lua-5.1.5/test/life.lua | 111 +
.../src/third_party/lua-5.1.5/test/luac.lua | 7 +
.../src/third_party/lua-5.1.5/test/printf.lua | 7 +
.../src/third_party/lua-5.1.5/test/readonly.lua | 12 +
.../src/third_party/lua-5.1.5/test/sieve.lua | 29 +
.../src/third_party/lua-5.1.5/test/sort.lua | 66 +
.../src/third_party/lua-5.1.5/test/table.lua | 12 +
.../third_party/lua-5.1.5/test/trace-calls.lua | 32 +
.../lua-5.1.5/test/trace-globals.lua | 38 +
.../src/third_party/lua-5.1.5/test/xd.lua | 14 +
.../src/third_party/lua-5.2.4/README | 6 +
.../src/third_party/lua-5.2.4/doc/contents.html | 608 +
.../src/third_party/lua-5.2.4/doc/logo.gif | Bin 0 -> 4232 bytes
.../src/third_party/lua-5.2.4/doc/lua.1 | 116 +
.../src/third_party/lua-5.2.4/doc/lua.css | 106 +
.../src/third_party/lua-5.2.4/doc/luac.1 | 118 +
.../src/third_party/lua-5.2.4/doc/manual.css | 27 +
.../src/third_party/lua-5.2.4/doc/manual.html | 10508 ++
.../lua-5.2.4/doc/osi-certified-72x60.png | Bin 0 -> 3774 bytes
.../src/third_party/lua-5.2.4/doc/readme.html | 417 +
.../src/third_party/lua-5.2.4/src/lapi.c | 1284 +
.../src/third_party/lua-5.2.4/src/lapi.h | 24 +
.../src/third_party/lua-5.2.4/src/lauxlib.c | 959 +
.../src/third_party/lua-5.2.4/src/lauxlib.h | 212 +
.../src/third_party/lua-5.2.4/src/lbaselib.c | 458 +
.../src/third_party/lua-5.2.4/src/lbitlib.c | 212 +
.../src/third_party/lua-5.2.4/src/lcode.c | 881 +
.../src/third_party/lua-5.2.4/src/lcode.h | 83 +
.../src/third_party/lua-5.2.4/src/lcorolib.c | 155 +
.../src/third_party/lua-5.2.4/src/lctype.c | 52 +
.../src/third_party/lua-5.2.4/src/lctype.h | 95 +
.../src/third_party/lua-5.2.4/src/ldblib.c | 408 +
.../src/third_party/lua-5.2.4/src/ldebug.c | 610 +
.../src/third_party/lua-5.2.4/src/ldebug.h | 34 +
.../src/third_party/lua-5.2.4/src/ldo.c | 681 +
.../src/third_party/lua-5.2.4/src/ldo.h | 46 +
.../src/third_party/lua-5.2.4/src/ldump.c | 173 +
.../src/third_party/lua-5.2.4/src/lfunc.c | 161 +
.../src/third_party/lua-5.2.4/src/lfunc.h | 33 +
.../src/third_party/lua-5.2.4/src/lgc.c | 1220 +
.../src/third_party/lua-5.2.4/src/lgc.h | 157 +
.../src/third_party/lua-5.2.4/src/linit.c | 67 +
.../src/third_party/lua-5.2.4/src/liolib.c | 666 +
.../src/third_party/lua-5.2.4/src/llex.c | 530 +
.../src/third_party/lua-5.2.4/src/llex.h | 78 +
.../src/third_party/lua-5.2.4/src/llimits.h | 309 +
.../src/third_party/lua-5.2.4/src/lmathlib.c | 279 +
.../src/third_party/lua-5.2.4/src/lmem.c | 99 +
.../src/third_party/lua-5.2.4/src/lmem.h | 57 +
.../src/third_party/lua-5.2.4/src/loadlib.c | 725 +
.../src/third_party/lua-5.2.4/src/lobject.c | 287 +
.../src/third_party/lua-5.2.4/src/lobject.h | 607 +
.../src/third_party/lua-5.2.4/src/lopcodes.c | 107 +
.../src/third_party/lua-5.2.4/src/lopcodes.h | 288 +
.../src/third_party/lua-5.2.4/src/loslib.c | 323 +
.../src/third_party/lua-5.2.4/src/lparser.c | 1638 +
.../src/third_party/lua-5.2.4/src/lparser.h | 119 +
.../src/third_party/lua-5.2.4/src/lstate.c | 323 +
.../src/third_party/lua-5.2.4/src/lstate.h | 228 +
.../src/third_party/lua-5.2.4/src/lstring.c | 185 +
.../src/third_party/lua-5.2.4/src/lstring.h | 46 +
.../src/third_party/lua-5.2.4/src/lstrlib.c | 1019 +
.../src/third_party/lua-5.2.4/src/ltable.c | 588 +
.../src/third_party/lua-5.2.4/src/ltable.h | 45 +
.../src/third_party/lua-5.2.4/src/ltablib.c | 285 +
.../src/third_party/lua-5.2.4/src/ltm.c | 77 +
.../src/third_party/lua-5.2.4/src/ltm.h | 57 +
.../src/third_party/lua-5.2.4/src/lua.c | 497 +
.../src/third_party/lua-5.2.4/src/lua.h | 444 +
.../src/third_party/lua-5.2.4/src/lua.hpp | 9 +
.../src/third_party/lua-5.2.4/src/luac.c | 432 +
.../src/third_party/lua-5.2.4/src/luaconf.h | 551 +
.../src/third_party/lua-5.2.4/src/lualib.h | 55 +
.../src/third_party/lua-5.2.4/src/lundump.c | 258 +
.../src/third_party/lua-5.2.4/src/lundump.h | 28 +
.../src/third_party/lua-5.2.4/src/lvm.c | 867 +
.../src/third_party/lua-5.2.4/src/lvm.h | 44 +
.../src/third_party/lua-5.2.4/src/lzio.c | 76 +
.../src/third_party/lua-5.2.4/src/lzio.h | 65 +
.../src/third_party/lua-5.3.3/README | 6 +
.../src/third_party/lua-5.3.3/doc/contents.html | 618 +
.../src/third_party/lua-5.3.3/doc/index.css | 21 +
.../src/third_party/lua-5.3.3/doc/logo.gif | Bin 0 -> 4232 bytes
.../src/third_party/lua-5.3.3/doc/lua.1 | 111 +
.../src/third_party/lua-5.3.3/doc/lua.css | 164 +
.../src/third_party/lua-5.3.3/doc/luac.1 | 118 +
.../src/third_party/lua-5.3.3/doc/manual.css | 21 +
.../src/third_party/lua-5.3.3/doc/manual.html | 10910 ++
.../lua-5.3.3/doc/osi-certified-72x60.png | Bin 0 -> 3774 bytes
.../src/third_party/lua-5.3.3/doc/readme.html | 365 +
.../src/third_party/lua-5.3.3/src/lapi.c | 1298 +
.../src/third_party/lua-5.3.3/src/lapi.h | 24 +
.../src/third_party/lua-5.3.3/src/lauxlib.c | 1035 +
.../src/third_party/lua-5.3.3/src/lauxlib.h | 256 +
.../src/third_party/lua-5.3.3/src/lbaselib.c | 498 +
.../src/third_party/lua-5.3.3/src/lbitlib.c | 233 +
.../src/third_party/lua-5.3.3/src/lcode.c | 1199 +
.../src/third_party/lua-5.3.3/src/lcode.h | 88 +
.../src/third_party/lua-5.3.3/src/lcorolib.c | 168 +
.../src/third_party/lua-5.3.3/src/lctype.c | 55 +
.../src/third_party/lua-5.3.3/src/lctype.h | 95 +
.../src/third_party/lua-5.3.3/src/ldblib.c | 456 +
.../src/third_party/lua-5.3.3/src/ldebug.c | 679 +
.../src/third_party/lua-5.3.3/src/ldebug.h | 39 +
.../src/third_party/lua-5.3.3/src/ldo.c | 800 +
.../src/third_party/lua-5.3.3/src/ldo.h | 58 +
.../src/third_party/lua-5.3.3/src/ldump.c | 215 +
.../src/third_party/lua-5.3.3/src/lfunc.c | 151 +
.../src/third_party/lua-5.3.3/src/lfunc.h | 61 +
.../src/third_party/lua-5.3.3/src/lgc.c | 1176 +
.../src/third_party/lua-5.3.3/src/lgc.h | 147 +
.../src/third_party/lua-5.3.3/src/linit.c | 68 +
.../src/third_party/lua-5.3.3/src/liolib.c | 768 +
.../src/third_party/lua-5.3.3/src/llex.c | 565 +
.../src/third_party/lua-5.3.3/src/llex.h | 85 +
.../src/third_party/lua-5.3.3/src/llimits.h | 323 +
.../src/third_party/lua-5.3.3/src/lmathlib.c | 407 +
.../src/third_party/lua-5.3.3/src/lmem.c | 100 +
.../src/third_party/lua-5.3.3/src/lmem.h | 69 +
.../src/third_party/lua-5.3.3/src/loadlib.c | 787 +
.../src/third_party/lua-5.3.3/src/lobject.c | 521 +
.../src/third_party/lua-5.3.3/src/lobject.h | 549 +
.../src/third_party/lua-5.3.3/src/lopcodes.c | 124 +
.../src/third_party/lua-5.3.3/src/lopcodes.h | 295 +
.../src/third_party/lua-5.3.3/src/loslib.c | 403 +
.../src/third_party/lua-5.3.3/src/lparser.c | 1652 +
.../src/third_party/lua-5.3.3/src/lparser.h | 133 +
.../src/third_party/lua-5.3.3/src/lprefix.h | 45 +
.../src/third_party/lua-5.3.3/src/lstate.c | 347 +
.../src/third_party/lua-5.3.3/src/lstate.h | 234 +
.../src/third_party/lua-5.3.3/src/lstring.c | 248 +
.../src/third_party/lua-5.3.3/src/lstring.h | 49 +
.../src/third_party/lua-5.3.3/src/lstrlib.c | 1582 +
.../src/third_party/lua-5.3.3/src/ltable.c | 669 +
.../src/third_party/lua-5.3.3/src/ltable.h | 58 +
.../src/third_party/lua-5.3.3/src/ltablib.c | 450 +
.../src/third_party/lua-5.3.3/src/ltm.c | 165 +
.../src/third_party/lua-5.3.3/src/ltm.h | 76 +
.../src/third_party/lua-5.3.3/src/lua.c | 609 +
.../src/third_party/lua-5.3.3/src/lua.h | 486 +
.../src/third_party/lua-5.3.3/src/lua.hpp | 9 +
.../src/third_party/lua-5.3.3/src/luac.c | 449 +
.../src/third_party/lua-5.3.3/src/luaconf.h | 767 +
.../src/third_party/lua-5.3.3/src/lualib.h | 58 +
.../src/third_party/lua-5.3.3/src/lundump.c | 279 +
.../src/third_party/lua-5.3.3/src/lundump.h | 32 +
.../src/third_party/lua-5.3.3/src/lutf8lib.c | 256 +
.../src/third_party/lua-5.3.3/src/lvm.c | 1322 +
.../src/third_party/lua-5.3.3/src/lvm.h | 113 +
.../src/third_party/lua-5.3.3/src/lzio.c | 68 +
.../src/third_party/lua-5.3.3/src/lzio.h | 66 +
.../civetweb-1.9.1/src/third_party/sqlite3.c | 155866 ++++++++++++++++
.../civetweb-1.9.1/src/third_party/sqlite3.h | 7831 +
thirdparty/civetweb-1.9.1/src/timer.inl | 213 +
thirdparty/civetweb-1.9.1/test/.leading.dot.txt | 1 +
thirdparty/civetweb-1.9.1/test/1000images.lua | 199 +
thirdparty/civetweb-1.9.1/test/100images.htm | 160 +
thirdparty/civetweb-1.9.1/test/CMakeLists.txt | 224 +
thirdparty/civetweb-1.9.1/test/HugeText.lua | 149 +
thirdparty/civetweb-1.9.1/test/MakefileTest.mk | 88 +
thirdparty/civetweb-1.9.1/test/MethodTest.xhtml | 200 +
thirdparty/civetweb-1.9.1/test/README.md | 25 +
thirdparty/civetweb-1.9.1/test/ajax/echo.cgi | 8 +
.../civetweb-1.9.1/test/ajax/echo.cgi.old | 73 +
thirdparty/civetweb-1.9.1/test/ajax/echo.lp | 9 +
thirdparty/civetweb-1.9.1/test/ajax/echo.lua | 35 +
thirdparty/civetweb-1.9.1/test/ajax/jquery.js | 4 +
thirdparty/civetweb-1.9.1/test/ajax/test.html | 168 +
.../civetweb-1.9.1/test/all_build_flags.pl | 28 +
thirdparty/civetweb-1.9.1/test/bad.cgi | 5 +
thirdparty/civetweb-1.9.1/test/bad2.cgi | 3 +
thirdparty/civetweb-1.9.1/test/bad_page.lp | 1 +
thirdparty/civetweb-1.9.1/test/bad_script.lua | 1 +
thirdparty/civetweb-1.9.1/test/cgi_test.c | 40 +
thirdparty/civetweb-1.9.1/test/cgi_test.html | 12 +
thirdparty/civetweb-1.9.1/test/civetweb_check.h | 60 +
thirdparty/civetweb-1.9.1/test/cors.html | 75 +
thirdparty/civetweb-1.9.1/test/cors.reply.html | 7 +
thirdparty/civetweb-1.9.1/test/cors.reply.lua | 73 +
thirdparty/civetweb-1.9.1/test/cors.reply.shtml | 7 +
.../test/dir with spaces/hello.cgi | 3 +
thirdparty/civetweb-1.9.1/test/echo.lua | 41 +
thirdparty/civetweb-1.9.1/test/embed.c | 182 +
thirdparty/civetweb-1.9.1/test/env.cgi | 46 +
thirdparty/civetweb-1.9.1/test/error.lua | 12 +
thirdparty/civetweb-1.9.1/test/error404.htm | 10 +
thirdparty/civetweb-1.9.1/test/exit.lua | 15 +
thirdparty/civetweb-1.9.1/test/exploit.pl | 69 +
thirdparty/civetweb-1.9.1/test/filehandler.lua | 93 +
thirdparty/civetweb-1.9.1/test/form.html | 118 +
thirdparty/civetweb-1.9.1/test/handle_form.lua | 123 +
thirdparty/civetweb-1.9.1/test/hello.cgi | 6 +
thirdparty/civetweb-1.9.1/test/hello.shtml | 5 +
thirdparty/civetweb-1.9.1/test/hello.txt | 1 +
thirdparty/civetweb-1.9.1/test/hello_gz.txt.gz | Bin 0 -> 66 bytes
.../civetweb-1.9.1/test/hello_gz_unzipped.txt | 1 +
thirdparty/civetweb-1.9.1/test/html_esc.lua | 60 +
thirdparty/civetweb-1.9.1/test/imagetest/00.png | Bin 0 -> 566 bytes
thirdparty/civetweb-1.9.1/test/imagetest/01.png | Bin 0 -> 587 bytes
thirdparty/civetweb-1.9.1/test/imagetest/02.png | Bin 0 -> 701 bytes
thirdparty/civetweb-1.9.1/test/imagetest/03.png | Bin 0 -> 741 bytes
thirdparty/civetweb-1.9.1/test/imagetest/04.png | Bin 0 -> 622 bytes
thirdparty/civetweb-1.9.1/test/imagetest/05.png | Bin 0 -> 711 bytes
thirdparty/civetweb-1.9.1/test/imagetest/06.png | Bin 0 -> 748 bytes
thirdparty/civetweb-1.9.1/test/imagetest/07.png | Bin 0 -> 645 bytes
thirdparty/civetweb-1.9.1/test/imagetest/08.png | Bin 0 -> 759 bytes
thirdparty/civetweb-1.9.1/test/imagetest/09.png | Bin 0 -> 760 bytes
thirdparty/civetweb-1.9.1/test/imagetest/10.png | Bin 0 -> 584 bytes
thirdparty/civetweb-1.9.1/test/imagetest/11.png | Bin 0 -> 386 bytes
thirdparty/civetweb-1.9.1/test/imagetest/12.png | Bin 0 -> 529 bytes
thirdparty/civetweb-1.9.1/test/imagetest/13.png | Bin 0 -> 575 bytes
thirdparty/civetweb-1.9.1/test/imagetest/14.png | Bin 0 -> 451 bytes
thirdparty/civetweb-1.9.1/test/imagetest/15.png | Bin 0 -> 547 bytes
thirdparty/civetweb-1.9.1/test/imagetest/16.png | Bin 0 -> 600 bytes
thirdparty/civetweb-1.9.1/test/imagetest/17.png | Bin 0 -> 477 bytes
thirdparty/civetweb-1.9.1/test/imagetest/18.png | Bin 0 -> 597 bytes
thirdparty/civetweb-1.9.1/test/imagetest/19.png | Bin 0 -> 600 bytes
thirdparty/civetweb-1.9.1/test/imagetest/20.png | Bin 0 -> 700 bytes
thirdparty/civetweb-1.9.1/test/imagetest/21.png | Bin 0 -> 533 bytes
thirdparty/civetweb-1.9.1/test/imagetest/22.png | Bin 0 -> 514 bytes
thirdparty/civetweb-1.9.1/test/imagetest/23.png | Bin 0 -> 679 bytes
thirdparty/civetweb-1.9.1/test/imagetest/24.png | Bin 0 -> 564 bytes
thirdparty/civetweb-1.9.1/test/imagetest/25.png | Bin 0 -> 656 bytes
thirdparty/civetweb-1.9.1/test/imagetest/26.png | Bin 0 -> 694 bytes
thirdparty/civetweb-1.9.1/test/imagetest/27.png | Bin 0 -> 586 bytes
thirdparty/civetweb-1.9.1/test/imagetest/28.png | Bin 0 -> 695 bytes
thirdparty/civetweb-1.9.1/test/imagetest/29.png | Bin 0 -> 712 bytes
thirdparty/civetweb-1.9.1/test/imagetest/30.png | Bin 0 -> 736 bytes
thirdparty/civetweb-1.9.1/test/imagetest/31.png | Bin 0 -> 572 bytes
thirdparty/civetweb-1.9.1/test/imagetest/32.png | Bin 0 -> 682 bytes
thirdparty/civetweb-1.9.1/test/imagetest/33.png | Bin 0 -> 556 bytes
thirdparty/civetweb-1.9.1/test/imagetest/34.png | Bin 0 -> 612 bytes
thirdparty/civetweb-1.9.1/test/imagetest/35.png | Bin 0 -> 695 bytes
thirdparty/civetweb-1.9.1/test/imagetest/36.png | Bin 0 -> 739 bytes
thirdparty/civetweb-1.9.1/test/imagetest/37.png | Bin 0 -> 636 bytes
thirdparty/civetweb-1.9.1/test/imagetest/38.png | Bin 0 -> 747 bytes
thirdparty/civetweb-1.9.1/test/imagetest/39.png | Bin 0 -> 736 bytes
thirdparty/civetweb-1.9.1/test/imagetest/40.png | Bin 0 -> 623 bytes
thirdparty/civetweb-1.9.1/test/imagetest/41.png | Bin 0 -> 448 bytes
thirdparty/civetweb-1.9.1/test/imagetest/42.png | Bin 0 -> 560 bytes
thirdparty/civetweb-1.9.1/test/imagetest/43.png | Bin 0 -> 610 bytes
thirdparty/civetweb-1.9.1/test/imagetest/44.png | Bin 0 -> 441 bytes
thirdparty/civetweb-1.9.1/test/imagetest/45.png | Bin 0 -> 584 bytes
thirdparty/civetweb-1.9.1/test/imagetest/46.png | Bin 0 -> 632 bytes
thirdparty/civetweb-1.9.1/test/imagetest/47.png | Bin 0 -> 522 bytes
thirdparty/civetweb-1.9.1/test/imagetest/48.png | Bin 0 -> 634 bytes
thirdparty/civetweb-1.9.1/test/imagetest/49.png | Bin 0 -> 637 bytes
thirdparty/civetweb-1.9.1/test/imagetest/50.png | Bin 0 -> 709 bytes
thirdparty/civetweb-1.9.1/test/imagetest/51.png | Bin 0 -> 550 bytes
thirdparty/civetweb-1.9.1/test/imagetest/52.png | Bin 0 -> 661 bytes
thirdparty/civetweb-1.9.1/test/imagetest/53.png | Bin 0 -> 696 bytes
thirdparty/civetweb-1.9.1/test/imagetest/54.png | Bin 0 -> 587 bytes
thirdparty/civetweb-1.9.1/test/imagetest/55.png | Bin 0 -> 544 bytes
thirdparty/civetweb-1.9.1/test/imagetest/56.png | Bin 0 -> 718 bytes
thirdparty/civetweb-1.9.1/test/imagetest/57.png | Bin 0 -> 610 bytes
thirdparty/civetweb-1.9.1/test/imagetest/58.png | Bin 0 -> 721 bytes
thirdparty/civetweb-1.9.1/test/imagetest/59.png | Bin 0 -> 725 bytes
thirdparty/civetweb-1.9.1/test/imagetest/60.png | Bin 0 -> 751 bytes
thirdparty/civetweb-1.9.1/test/imagetest/61.png | Bin 0 -> 600 bytes
thirdparty/civetweb-1.9.1/test/imagetest/62.png | Bin 0 -> 710 bytes
thirdparty/civetweb-1.9.1/test/imagetest/63.png | Bin 0 -> 744 bytes
thirdparty/civetweb-1.9.1/test/imagetest/64.png | Bin 0 -> 631 bytes
thirdparty/civetweb-1.9.1/test/imagetest/65.png | Bin 0 -> 726 bytes
thirdparty/civetweb-1.9.1/test/imagetest/66.png | Bin 0 -> 584 bytes
thirdparty/civetweb-1.9.1/test/imagetest/67.png | Bin 0 -> 659 bytes
thirdparty/civetweb-1.9.1/test/imagetest/68.png | Bin 0 -> 766 bytes
thirdparty/civetweb-1.9.1/test/imagetest/69.png | Bin 0 -> 766 bytes
thirdparty/civetweb-1.9.1/test/imagetest/70.png | Bin 0 -> 640 bytes
thirdparty/civetweb-1.9.1/test/imagetest/71.png | Bin 0 -> 474 bytes
thirdparty/civetweb-1.9.1/test/imagetest/72.png | Bin 0 -> 584 bytes
thirdparty/civetweb-1.9.1/test/imagetest/73.png | Bin 0 -> 631 bytes
thirdparty/civetweb-1.9.1/test/imagetest/74.png | Bin 0 -> 517 bytes
thirdparty/civetweb-1.9.1/test/imagetest/75.png | Bin 0 -> 603 bytes
thirdparty/civetweb-1.9.1/test/imagetest/76.png | Bin 0 -> 650 bytes
thirdparty/civetweb-1.9.1/test/imagetest/77.png | Bin 0 -> 453 bytes
thirdparty/civetweb-1.9.1/test/imagetest/78.png | Bin 0 -> 653 bytes
thirdparty/civetweb-1.9.1/test/imagetest/79.png | Bin 0 -> 655 bytes
thirdparty/civetweb-1.9.1/test/imagetest/80.png | Bin 0 -> 759 bytes
thirdparty/civetweb-1.9.1/test/imagetest/81.png | Bin 0 -> 596 bytes
thirdparty/civetweb-1.9.1/test/imagetest/82.png | Bin 0 -> 714 bytes
thirdparty/civetweb-1.9.1/test/imagetest/83.png | Bin 0 -> 751 bytes
thirdparty/civetweb-1.9.1/test/imagetest/84.png | Bin 0 -> 634 bytes
thirdparty/civetweb-1.9.1/test/imagetest/85.png | Bin 0 -> 724 bytes
thirdparty/civetweb-1.9.1/test/imagetest/86.png | Bin 0 -> 766 bytes
thirdparty/civetweb-1.9.1/test/imagetest/87.png | Bin 0 -> 660 bytes
thirdparty/civetweb-1.9.1/test/imagetest/88.png | Bin 0 -> 579 bytes
thirdparty/civetweb-1.9.1/test/imagetest/89.png | Bin 0 -> 778 bytes
thirdparty/civetweb-1.9.1/test/imagetest/90.png | Bin 0 -> 756 bytes
thirdparty/civetweb-1.9.1/test/imagetest/91.png | Bin 0 -> 604 bytes
thirdparty/civetweb-1.9.1/test/imagetest/92.png | Bin 0 -> 716 bytes
thirdparty/civetweb-1.9.1/test/imagetest/93.png | Bin 0 -> 735 bytes
thirdparty/civetweb-1.9.1/test/imagetest/94.png | Bin 0 -> 634 bytes
thirdparty/civetweb-1.9.1/test/imagetest/95.png | Bin 0 -> 726 bytes
thirdparty/civetweb-1.9.1/test/imagetest/96.png | Bin 0 -> 763 bytes
thirdparty/civetweb-1.9.1/test/imagetest/97.png | Bin 0 -> 660 bytes
thirdparty/civetweb-1.9.1/test/imagetest/98.png | Bin 0 -> 776 bytes
thirdparty/civetweb-1.9.1/test/imagetest/99.png | Bin 0 -> 590 bytes
thirdparty/civetweb-1.9.1/test/linux.cgi | 9 +
thirdparty/civetweb-1.9.1/test/linux_fail.cgi | 4 +
.../civetweb-1.9.1/test/linux_fail_silent.cgi | 5 +
.../civetweb-1.9.1/test/lua_preload_file.lua | 7 +
thirdparty/civetweb-1.9.1/test/main.c | 96 +
thirdparty/civetweb-1.9.1/test/page.lp | 71 +
thirdparty/civetweb-1.9.1/test/page.lua | 71 +
thirdparty/civetweb-1.9.1/test/page.ssjs | 19 +
thirdparty/civetweb-1.9.1/test/page2.lp | 72 +
thirdparty/civetweb-1.9.1/test/page2.lua | 87 +
thirdparty/civetweb-1.9.1/test/page2.ssjs | 30 +
thirdparty/civetweb-1.9.1/test/page3.lua | 34 +
thirdparty/civetweb-1.9.1/test/page3.ssjs | 61 +
thirdparty/civetweb-1.9.1/test/page4.lua | 180 +
thirdparty/civetweb-1.9.1/test/page5.lua | 8 +
.../civetweb-1.9.1/test/page_keep_alive.lua | 32 +
.../test/page_keep_alive_chunked.lua | 66 +
thirdparty/civetweb-1.9.1/test/passfile | 3 +
thirdparty/civetweb-1.9.1/test/prime.ssjs | 36 +
thirdparty/civetweb-1.9.1/test/private.c | 819 +
thirdparty/civetweb-1.9.1/test/private.h | 28 +
thirdparty/civetweb-1.9.1/test/private_exe.c | 79 +
thirdparty/civetweb-1.9.1/test/private_exe.h | 31 +
thirdparty/civetweb-1.9.1/test/public_func.c | 532 +
thirdparty/civetweb-1.9.1/test/public_func.h | 28 +
thirdparty/civetweb-1.9.1/test/public_server.c | 3733 +
thirdparty/civetweb-1.9.1/test/public_server.h | 28 +
thirdparty/civetweb-1.9.1/test/require_test.lua | 2 +
.../test/resource_script_demo.lua | 124 +
thirdparty/civetweb-1.9.1/test/shared.c | 48 +
thirdparty/civetweb-1.9.1/test/shared.h | 27 +
thirdparty/civetweb-1.9.1/test/ssi_test.shtml | 37 +
.../civetweb-1.9.1/test/syntax_error.ssjs | 7 +
thirdparty/civetweb-1.9.1/test/test.ico | Bin 0 -> 1406 bytes
thirdparty/civetweb-1.9.1/test/test.pl | 461 +
thirdparty/civetweb-1.9.1/test/testclient.c | 151 +
thirdparty/civetweb-1.9.1/test/timeout.cgi | 12 +
thirdparty/civetweb-1.9.1/test/timertest.c | 348 +
thirdparty/civetweb-1.9.1/test/timertest.h | 28 +
thirdparty/civetweb-1.9.1/test/websocket.lua | 118 +
thirdparty/civetweb-1.9.1/test/websocket.xhtml | 117 +
thirdparty/civetweb-1.9.1/test/windows.cgi | 2 +
thirdparty/civetweb-1.9.1/test/windows.cgi.cmd | 7 +
thirdparty/civetweb-1.9.1/test/windows_fail.cgi | 2 +
.../civetweb-1.9.1/test/windows_fail.cgi.cmd | 2 +
.../civetweb-1.9.1/test/windows_fail_silent.cgi | 2 +
.../test/windows_fail_silent.cgi.cmd | 3 +
thirdparty/civetweb-1.9.1/test/x.php | 9 +
918 files changed, 624116 insertions(+), 52 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/a9485aeb/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8eba073..7ae1f8e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -46,6 +46,9 @@ endif()
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
+# Enable asan in DEBUG for compatibility with civet
+set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fsanitize=address")
+
# Search for threads
find_package(Threads REQUIRED)
@@ -56,7 +59,7 @@ else()
set(OPENSSL_ROOT_DIR "/usr/lib/x86_64-linux-gnu")
endif()
-# Include OpenSSL
+# Include OpenSSL
find_package (OpenSSL REQUIRED)
if (OPENSSL_FOUND)
include_directories(${OPENSSL_INCLUDE_DIR})
@@ -78,6 +81,8 @@ find_package(UUID REQUIRED)
file(GLOB SPD_SOURCES "include/spdlog/*")
add_subdirectory(thirdparty/yaml-cpp-yaml-cpp-0.5.3)
+set(CIVETWEB_ENABLE_CXX ON CACHE BOOL "Enable civet C++ library")
+add_subdirectory(thirdparty/civetweb-1.9.1)
add_subdirectory(libminifi)
add_subdirectory(main)
@@ -115,7 +120,7 @@ set(CPACK_COMPONENTS_ALL bin)
include(CPack)
-enable_testing(test)
+enable_testing(test)
file(GLOB LIBMINIFI_TEST_SOURCES "libminifi/test/unit/*.cpp")
add_executable(tests ${LIBMINIFI_TEST_SOURCES} ${SPD_SOURCES})
target_include_directories(tests PRIVATE BEFORE "thirdparty/catch")
@@ -123,5 +128,5 @@ enable_testing(test)
target_include_directories(tests PRIVATE BEFORE ${LEVELDB_INCLUDE_DIRS})
target_include_directories(tests PRIVATE BEFORE "include")
target_include_directories(tests PRIVATE BEFORE "libminifi/include/")
- target_link_libraries(tests ${CMAKE_THREAD_LIBS_INIT} ${UUID_LIBRARIES}
${LEVELDB_LIBRARIES} ${OPENSSL_LIBRARIES} minifi yaml-cpp)
+ target_link_libraries(tests ${CMAKE_THREAD_LIBS_INIT} ${UUID_LIBRARIES}
${LEVELDB_LIBRARIES} ${OPENSSL_LIBRARIES} minifi yaml-cpp c-library
civetweb-cpp)
add_test(NAME LibMinifiTests COMMAND tests)
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/a9485aeb/LICENSE
----------------------------------------------------------------------
diff --git a/LICENSE b/LICENSE
index d72606a..64b724c 100644
--- a/LICENSE
+++ b/LICENSE
@@ -441,4 +441,32 @@ FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-DEALINGS IN THE SOFTWARE.
\ No newline at end of file
+DEALINGS IN THE SOFTWARE.
+
+This product bundles 'CivetWeb' which is available under a MIT license.
+
+Copyright (c) 2013-2015 The CivetWeb developers (CREDITS.md)
+
+Copyright (c) 2004-2013 Sergey Lyubka
+
+Copyright (c) 2013 No Face Press, LLC (Thomas Davis)
+
+Copyright (c) 2013 F-Secure Corporation
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/a9485aeb/libminifi/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/libminifi/CMakeLists.txt b/libminifi/CMakeLists.txt
index 8f77ed8..269492c 100644
--- a/libminifi/CMakeLists.txt
+++ b/libminifi/CMakeLists.txt
@@ -38,6 +38,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
include_directories(../include)
include_directories(../thirdparty/yaml-cpp-yaml-cpp-0.5.3/include)
+include_directories(../thirdparty/civetweb-1.9.1/include)
include_directories(include)
file(GLOB SOURCES "src/*.cpp")
@@ -48,6 +49,10 @@ file(GLOB SPD_SOURCES "../include/spdlog/*")
add_library(spdlog STATIC ${SPD_SOURCES})
add_library(minifi STATIC ${SOURCES})
+# Include Boost System
+find_package(Boost COMPONENTS system REQUIRED)
+target_link_libraries(minifi ${Boost_SYSTEM_LIBRARY})
+
# Include LevelDB
find_package (Leveldb REQUIRED)
if (LEVELDB_FOUND)
@@ -57,7 +62,7 @@ else ()
message( FATAL_ERROR "LevelDB was not found. Please install LevelDB" )
endif (LEVELDB_FOUND)
-# Include OpenSSL
+# Include OpenSSL
find_package (OpenSSL REQUIRED)
if (OPENSSL_FOUND)
include_directories(${OPENSSL_INCLUDE_DIR})
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/a9485aeb/libminifi/include/EventDrivenSchedulingAgent.h
----------------------------------------------------------------------
diff --git a/libminifi/include/EventDrivenSchedulingAgent.h
b/libminifi/include/EventDrivenSchedulingAgent.h
index f6e6ffb..b32f84f 100644
--- a/libminifi/include/EventDrivenSchedulingAgent.h
+++ b/libminifi/include/EventDrivenSchedulingAgent.h
@@ -42,7 +42,7 @@ public:
{
}
//! Run function for the thread
- void run(Processor *processor);
+ void run(Processor *processor, ProcessContext *processContext,
ProcessSessionFactory *sessionFactory);
private:
// Prevent default copy constructor and assignment operation
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/a9485aeb/libminifi/include/FlowController.h
----------------------------------------------------------------------
diff --git a/libminifi/include/FlowController.h
b/libminifi/include/FlowController.h
index 02c39b1..561cd1b 100644
--- a/libminifi/include/FlowController.h
+++ b/libminifi/include/FlowController.h
@@ -51,6 +51,7 @@
#include "PutFile.h"
#include "TailFile.h"
#include "ListenSyslog.h"
+#include "ListenHTTP.h"
#include "ExecuteProcess.h"
#include "AppendHostInfo.h"
// OpenSSL related
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/a9485aeb/libminifi/include/ListenHTTP.h
----------------------------------------------------------------------
diff --git a/libminifi/include/ListenHTTP.h b/libminifi/include/ListenHTTP.h
new file mode 100644
index 0000000..57fd967
--- /dev/null
+++ b/libminifi/include/ListenHTTP.h
@@ -0,0 +1,116 @@
+/**
+ * @file ListenHTTP.h
+ * ListenHTTP class declaration
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+#ifndef __LISTEN_HTTP_H__
+#define __LISTEN_HTTP_H__
+
+#include <memory>
+#include <regex>
+
+#include <CivetServer.h>
+
+#include "FlowFileRecord.h"
+#include "Processor.h"
+#include "ProcessSession.h"
+
+
+//! ListenHTTP Class
+class ListenHTTP : public Processor
+{
+public:
+
+ //! Constructor
+ /*!
+ * Create a new processor
+ */
+ ListenHTTP(std::string name, uuid_t uuid = NULL)
+ : Processor(name, uuid)
+ {
+ _logger = Logger::getLogger();
+ }
+ //! Destructor
+ ~ListenHTTP()
+ {
+ }
+ //! Processor Name
+ static const std::string ProcessorName;
+ //! Supported Properties
+ static Property BasePath;
+ static Property Port;
+ static Property AuthorizedDNPattern;
+ static Property SSLCertificate;
+ static Property SSLCertificateAuthority;
+ static Property SSLVerifyPeer;
+ static Property SSLMinimumVersion;
+ static Property HeadersAsAttributesRegex;
+ //! Supported Relationships
+ static Relationship Success;
+
+ void onTrigger(ProcessContext *context, ProcessSession *session);
+ void initialize();
+ void onSchedule(ProcessContext *context, ProcessSessionFactory
*sessionFactory);
+
+ //! HTTP request handler
+ class Handler : public CivetHandler
+ {
+ public:
+ Handler(ProcessContext *context,
+ ProcessSessionFactory *sessionFactory,
+ std::string &&authDNPattern,
+ std::string &&headersAsAttributesPattern);
+ bool handlePost(CivetServer *server, struct mg_connection
*conn);
+
+ private:
+ //! Send HTTP 500 error response to client
+ void sendErrorResponse(struct mg_connection *conn);
+ //! Logger
+ Logger *_logger;
+
+ std::regex _authDNRegex;
+ std::regex _headersAsAttributesRegex;
+ ProcessContext *_processContext;
+ ProcessSessionFactory *_processSessionFactory;
+ };
+
+ //! Write callback for transferring data from HTTP request to content
repo
+ class WriteCallback : public OutputStreamCallback
+ {
+ public:
+ WriteCallback(struct mg_connection *conn, const struct
mg_request_info *reqInfo);
+ void process(std::ofstream *stream);
+
+ private:
+ //! Logger
+ Logger *_logger;
+
+ struct mg_connection *_conn;
+ const struct mg_request_info *_reqInfo;
+ };
+
+protected:
+
+private:
+ //! Logger
+ Logger *_logger;
+
+ std::unique_ptr<CivetServer> _server;
+ std::unique_ptr<Handler> _handler;
+};
+
+#endif
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/a9485aeb/libminifi/include/ProcessContext.h
----------------------------------------------------------------------
diff --git a/libminifi/include/ProcessContext.h
b/libminifi/include/ProcessContext.h
index 8d0bdd1..5c3288e 100644
--- a/libminifi/include/ProcessContext.h
+++ b/libminifi/include/ProcessContext.h
@@ -96,16 +96,15 @@ public:
_processor->yield();
}
-protected:
+ // Prevent default copy constructor and assignment operation
+ // Only support pass by reference or pointer
+ ProcessContext(const ProcessContext &parent) = delete;
+ ProcessContext &operator=(const ProcessContext &parent) = delete;
private:
//! Processor
Processor *_processor;
- // Prevent default copy constructor and assignment operation
- // Only support pass by reference or pointer
- ProcessContext(const ProcessContext &parent);
- ProcessContext &operator=(const ProcessContext &parent);
//! Logger
Logger *_logger;
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/a9485aeb/libminifi/include/ProcessSession.h
----------------------------------------------------------------------
diff --git a/libminifi/include/ProcessSession.h
b/libminifi/include/ProcessSession.h
index 8dc8cc5..44032c3 100644
--- a/libminifi/include/ProcessSession.h
+++ b/libminifi/include/ProcessSession.h
@@ -96,6 +96,11 @@ public:
//! Import the existed file into the flow
void import(std::string source, FlowFileRecord *flow, bool keepSource =
true, uint64_t offset = 0);
+ // Prevent default copy constructor and assignment operation
+ // Only support pass by reference or pointer
+ ProcessSession(const ProcessSession &parent) = delete;
+ ProcessSession &operator=(const ProcessSession &parent) = delete;
+
protected:
//! FlowFiles being modified by current process session
std::map<std::string, FlowFileRecord *> _updatedFlowFiles;
@@ -115,10 +120,6 @@ private:
FlowFileRecord* cloneDuringTransfer(FlowFileRecord *parent);
//! ProcessContext
ProcessContext *_processContext;
- // Prevent default copy constructor and assignment operation
- // Only support pass by reference or pointer
- ProcessSession(const ProcessSession &parent);
- ProcessSession &operator=(const ProcessSession &parent);
//! Logger
Logger *_logger;
//! Provenance Report
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/a9485aeb/libminifi/include/ProcessSessionFactory.h
----------------------------------------------------------------------
diff --git a/libminifi/include/ProcessSessionFactory.h
b/libminifi/include/ProcessSessionFactory.h
new file mode 100644
index 0000000..7fc3410
--- /dev/null
+++ b/libminifi/include/ProcessSessionFactory.h
@@ -0,0 +1,52 @@
+/**
+ * @file ProcessSessionFactory.h
+ * ProcessSessionFactory class declaration
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+#ifndef __PROCESS_SESSION_FACTORY_H__
+#define __PROCESS_SESSION_FACTORY_H__
+
+#include <memory>
+
+#include "ProcessContext.h"
+#include "ProcessSession.h"
+
+//! ProcessSessionFactory Class
+class ProcessSessionFactory
+{
+public:
+ //! Constructor
+ /*!
+ * Create a new process session factory
+ */
+ explicit ProcessSessionFactory(ProcessContext *processContext) :
_processContext(processContext) {}
+
+ //! Create the session
+ std::unique_ptr<ProcessSession> createSession();
+
+ // Prevent default copy constructor and assignment operation
+ // Only support pass by reference or pointer
+ ProcessSessionFactory(const ProcessSessionFactory &parent) = delete;
+ ProcessSessionFactory &operator=(const ProcessSessionFactory &parent) =
delete;
+
+private:
+ //! ProcessContext
+ ProcessContext *_processContext;
+
+};
+
+#endif
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/a9485aeb/libminifi/include/Processor.h
----------------------------------------------------------------------
diff --git a/libminifi/include/Processor.h b/libminifi/include/Processor.h
index 1bf6fcc..95f47c1 100644
--- a/libminifi/include/Processor.h
+++ b/libminifi/include/Processor.h
@@ -25,11 +25,13 @@
#include <queue>
#include <map>
#include <mutex>
+#include <memory>
#include <condition_variable>
#include <atomic>
#include <algorithm>
#include <set>
#include <chrono>
+#include <functional>
#include "TimeUtil.h"
#include "Property.h"
@@ -39,6 +41,7 @@
//! Forwarder declaration
class ProcessContext;
class ProcessSession;
+class ProcessSessionFactory;
//! Minimum scheduling period in Nano Second
#define MINIMUM_SCHEDULING_NANOS 30000
@@ -137,9 +140,7 @@ public:
//! Check whether the processor is running
bool isRunning();
//! Set Processor Scheduled State
- void setScheduledState(ScheduledState state) {
- _state = state;
- }
+ void setScheduledState(ScheduledState state);
//! Get Processor Scheduled State
ScheduledState getScheduledState(void) {
return _state;
@@ -281,7 +282,7 @@ public:
//! Get the Next RoundRobin incoming connection
Connection *getNextIncomingConnection();
//! On Trigger
- void onTrigger();
+ void onTrigger(ProcessContext *context, ProcessSessionFactory
*sessionFactory);
//! Block until work is available on any input connection, or the given
duration elapses
void waitForWork(uint64_t timeoutMs);
//! Notify this processor that work may be available
@@ -290,10 +291,10 @@ public:
public:
//! OnTrigger method, implemented by NiFi Processor Designer
virtual void onTrigger(ProcessContext *context, ProcessSession
*session) = 0;
- //! Initialize, over write by NiFi Process Designer
- virtual void initialize(void) {
- return;
- }
+ //! Initialize, overridden by NiFi Process Designer
+ virtual void initialize() {}
+ //! Scheduled event hook, overridden by NiFi Process Designer
+ virtual void onSchedule(ProcessContext *context, ProcessSessionFactory
*sessionFactory) {}
protected:
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/a9485aeb/libminifi/include/SchedulingAgent.h
----------------------------------------------------------------------
diff --git a/libminifi/include/SchedulingAgent.h
b/libminifi/include/SchedulingAgent.h
index 2e3f6b8..1f94585 100644
--- a/libminifi/include/SchedulingAgent.h
+++ b/libminifi/include/SchedulingAgent.h
@@ -53,7 +53,7 @@ public:
}
//! onTrigger, return whether the yield is need
- bool onTrigger(Processor *processor);
+ bool onTrigger(Processor *processor, ProcessContext *processContext,
ProcessSessionFactory *sessionFactory);
//! Whether agent has work to do
bool hasWorkToDo(Processor *processor);
//! Whether the outgoing need to be backpressure
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/a9485aeb/libminifi/include/ThreadedSchedulingAgent.h
----------------------------------------------------------------------
diff --git a/libminifi/include/ThreadedSchedulingAgent.h
b/libminifi/include/ThreadedSchedulingAgent.h
index 2b14e3d..78d56f2 100644
--- a/libminifi/include/ThreadedSchedulingAgent.h
+++ b/libminifi/include/ThreadedSchedulingAgent.h
@@ -45,9 +45,9 @@ public:
virtual ~ThreadedSchedulingAgent()
{
}
-
+
//! Run function for the thread
- virtual void run(Processor *processor) = 0;
+ virtual void run(Processor *processor, ProcessContext *processContext,
ProcessSessionFactory *sessionFactory) = 0;
public:
//! schedule, overwritten by different DrivenTimerDrivenSchedulingAgent
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/a9485aeb/libminifi/include/TimerDrivenSchedulingAgent.h
----------------------------------------------------------------------
diff --git a/libminifi/include/TimerDrivenSchedulingAgent.h
b/libminifi/include/TimerDrivenSchedulingAgent.h
index 7fd86f6..389ccf6 100644
--- a/libminifi/include/TimerDrivenSchedulingAgent.h
+++ b/libminifi/include/TimerDrivenSchedulingAgent.h
@@ -42,7 +42,7 @@ public:
{
}
//! Run function for the thread
- void run(Processor *processor);
+ void run(Processor *processor, ProcessContext *processContext,
ProcessSessionFactory *sessionFactory);
private:
// Prevent default copy constructor and assignment operation
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/a9485aeb/libminifi/src/EventDrivenSchedulingAgent.cpp
----------------------------------------------------------------------
diff --git a/libminifi/src/EventDrivenSchedulingAgent.cpp
b/libminifi/src/EventDrivenSchedulingAgent.cpp
index ed1d8ea..53bde4e 100644
--- a/libminifi/src/EventDrivenSchedulingAgent.cpp
+++ b/libminifi/src/EventDrivenSchedulingAgent.cpp
@@ -23,11 +23,11 @@
#include "Property.h"
#include "EventDrivenSchedulingAgent.h"
-void EventDrivenSchedulingAgent::run(Processor *processor)
+void EventDrivenSchedulingAgent::run(Processor *processor, ProcessContext
*processContext, ProcessSessionFactory *sessionFactory)
{
while (this->_running)
{
- bool shouldYield = this->onTrigger(processor);
+ bool shouldYield = this->onTrigger(processor, processContext,
sessionFactory);
if (processor->isYield())
{
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/a9485aeb/libminifi/src/FlowController.cpp
----------------------------------------------------------------------
diff --git a/libminifi/src/FlowController.cpp b/libminifi/src/FlowController.cpp
index 5b1116f..98bf1a1 100644
--- a/libminifi/src/FlowController.cpp
+++ b/libminifi/src/FlowController.cpp
@@ -176,7 +176,7 @@ FlowControllerImpl::FlowControllerImpl(std::string name) {
_logger->log_info("Load/Verify Client Certificate OK.");
}
-
+
}
if (!path) {
_logger->log_error(
@@ -199,7 +199,7 @@ FlowControllerImpl::~FlowControllerImpl() {
delete _protocol;
if (NULL != _provenanceRepo)
delete _provenanceRepo;
-
+
}
void FlowControllerImpl::stop(bool force) {
@@ -280,6 +280,8 @@ Processor *FlowControllerImpl::createProcessor(std::string
name, uuid_t uuid) {
processor = new TailFile(name, uuid);
} else if (name == ListenSyslog::ProcessorName) {
processor = new ListenSyslog(name, uuid);
+ } else if (name == ListenHTTP::ProcessorName) {
+ processor = new ListenHTTP(name, uuid);
} else if (name == ExecuteProcess::ProcessorName) {
processor = new ExecuteProcess(name, uuid);
} else if (name == AppendHostInfo::ProcessorName) {