{"schema":"libjg2-1",
"vpath":"/git/",
"avatar":"/git/avatar/",
"alang":"",
"gen_ut":1753166475,
"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": "f6e6818ca70bae01afdeee31e252fda66539041b", "alias": []},"tree": [
{ "name": "CMakeLists.txt","mode": "33188", "size":1999},
{ "name": "README.md","mode": "33188", "size":1197},
{ "name": "minimal-raw-vhost.c","mode": "33188", "size":3926}],"s":{"c":1753166475,"u": 354}}
,{"schema":"libjg2-1",
"cid":"0020b0711a3b5177244e9fabc47e589d",
"oid":{ "oid": "f6e6818ca70bae01afdeee31e252fda66539041b", "alias": []},"blobname": "minimal-examples/raw/minimal-raw-vhost/README.md", "blob": "# lws minimal ws server raw vhost\n\nThis demonstrates setting up a vhost to listen and accept raw sockets.\nRaw sockets are just sockets... lws does not send anything on them or\ninterpret by itself what it receives on them. So you can implement\narbitrary tcp protocols using them.\n\nThis isn't very useful standalone as shown here for clarity, but you can\nfreely combine a raw socket vhost with other lws server\nand client features and other vhosts handling http or ws.\n\nBecuase raw socket events have their own callback reasons, the handlers can\nbe integrated in a single protocol that also handles http and ws\nserver and client callbacks without conflict.\n\n## build\n\n```\n $ cmake . \u0026\u0026 make\n```\n\n## usage\n\n```\n $ ./lws-minimal-raw-vhost\n[2018/03/22 14:49:47:9516] USER: LWS minimal raw vhost\n[2018/03/22 14:49:47:9673] NOTICE: Creating Vhost 'default' port 7681, 1 protocols, IPv6 off\n[2018/03/22 14:49:52:3789] USER: LWS_CALLBACK_RAW_ADOPT\n[2018/03/22 14:49:57:4271] USER: LWS_CALLBACK_RAW_CLOSE\n```\n\n```\n $ nc localhost 7681\nhello\nhello\n```\n\nConnect one or more sessions to the server using netcat... lines you type\ninto netcat are sent to the server, which echos them to all connected clients.\n\n","s":{"c":1753166475,"u": 221}}
],"g": 2347,"chitpc": 0,"ehitpc": 0,"indexed":0
,
"ab": 1, "si": 0, "db":0, "di":1, "sat":0, "lfc": "0000"}