Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"", "gen_ut":1750825421, "reponame":"libwebsockets", "desc":"libwebsockets lightweight C networking library", "owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://libwebsockets.org/repo/libwebsockets", "f":3, "items": [ { "schema":"libjg2-1", "oid":{ "oid": "47efb8c1c2371fa309f85a32984e99b2cc1d614a", "alias": [ "refs/heads/main"]},"tree": [ { "name": "README.md","mode": "33188", "size":937}, { "name": "lss.cxx","mode": "33188", "size":3840}, { "name": "lssFile.cxx","mode": "33188", "size":3471}, { "name": "lssMsg.cxx","mode": "33188", "size":1946}],"s":{"c":1750825421,"u": 421}} ,{"schema":"libjg2-1", "cid":"1a11f24b9d7f967e757c9f9ab2add171", "oid":{ "oid": "47efb8c1c2371fa309f85a32984e99b2cc1d614a", "alias": [ "refs/heads/main"]},"blobname": "lib/secure-streams/cpp/README.md", "blob": "## Secure Streams client C++ API\n\nEnable for build by selecting `-DLWS_WITH_SECURE_STREAMS\u003d1 -DLWS_WITH_SECURE_STREAMS_CPP\u003d1` at\ncmake.\n\nBecause it's designed for OpenSSL + system trust bundle, the minimal\nexample minimal-secure-streams-cpp requires `-DLWS_WITH_MINIMAL_EXAMPLES\u003d1 -DLWS_WITH_MBEDTLS\u003d0`\n\nBy default the -cpp example downloads https://warmcat.com/test-a.bin to the local\nfile /tmp/test-a.bin. By giving, eg, -c 4, you can run four concurrent downloads of\nfiles test-a.bin through test-d.bin... up to 12 files may be downloaded concurrently.\n\nBy default it will connect over h2 and share the single connection between all the\ndownloads.\n\n### File level api\n\n```\n#include \u003clibwebsockets.hxx\u003e\n\n...\n\n\tnew lssFile(context, \u0022https://warmcat.com/index.html\u0022,\n\t\t\t\u0022/tmp/index.html\u0022, lss_completion, 0);\n```\n\nThis will copy the remote url to the given local file, and call the\ncompletion callback when it has succeeded or failed.\n\n","s":{"c":1750825421,"u": 89}} ],"g": 2014,"chitpc": 0,"ehitpc": 0,"indexed":0 , "ab": 1, "si": 0, "db":0, "di":1, "sat":0, "lfc": "0000"}