Project homepage Mailing List  API Docs  Github Mirror 
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"en-US,en;q\u003d0.5", "gen_ut":1571123671, "reponame":"libwebsockets", "desc":"libwebsockets lightweight C networking library", "owner": { "name": "Andy Green", "email": "", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"", "f":3, "items": [ { "schema":"libjg2-1", "oid":{ "oid": "6d8039c13b80f530edecd833eda608175ce15387", "alias": [ "refs/heads/master"]},"tree": [ { "name": "mount-origin","mode": "16384", "size":0}, { "name": "CMakeLists.txt","mode": "33188", "size":2456}, { "name": "","mode": "33188", "size":635}, { "name": "minimal-ws-server-threadpool.c","mode": "33188", "size":3658}, { "name": "protocol_lws_minimal_threadpool.c","mode": "33188", "size":9031}],"s":{"c":1571123671,"u": 464}} ,{"schema":"libjg2-1", "cid":"8a7ff3beea8a024f7ca3469e231d852e", "oid":{ "oid": "6d8039c13b80f530edecd833eda608175ce15387", "alias": [ "refs/heads/master"]},"blobname": "minimal-examples/ws-server/minimal-ws-server-threadpool/", "blob": "# lws minimal ws server (threadpool)\n\n## build\n\n```\n $ cmake . \u0026\u0026 make\n```\n\nPthreads is required on your system.\n\nThis demonstrates how to cleanly assign tasks bound to a wsi to a thread pool,\nwith a queue if the pool is occupied.\n\nIt creates a threadpool with 3 worker threads and a maxiumum queue size of 4.\n\nThe web page at http://localhost:7681 then starts up 8 x ws connections.\n\n## usage\n\n```\n $ ./lws-minimal-ws-server-threadpool \n[2018/03/13 13:09:52:2208] USER: LWS minimal ws server + threadpool | visit http://localhost:7681\n[2018/03/13 13:09:52:2365] NOTICE: Creating Vhost 'default' port 7681, 2 protocols, IPv6 off\n```\n\n\n","s":{"c":1571123671,"u": 111}} ],"g": 1423,"chitpc": 0,"ehitpc": 0, "indexed":0 }