├── .clang-format ├── .gitignore ├── Makefile ├── README ├── acme.c ├── acme.h ├── asyncio.c ├── asyncio.h ├── atomic.h ├── aws.c ├── aws.h ├── azure.c ├── azure.h ├── bytestream.h ├── cfg.c ├── cfg.h ├── cmd.c ├── cmd.h ├── cookie.c ├── cookie.h ├── ctrlsock.c ├── ctrlsock.h ├── curlhelpers.c ├── curlhelpers.h ├── db.c ├── db.h ├── dbl.c ├── dbl.h ├── dial.c ├── dial.h ├── dns.c ├── dns.h ├── err.c ├── err.h ├── filebundle.h ├── filebundle_disk.c ├── filebundle_embedded.c ├── fpipe.c ├── fpipe.h ├── gcp.c ├── gcp.h ├── gitver.mk ├── htsbuf.c ├── htsbuf.h ├── htsmsg.h ├── http.c ├── http.h ├── http_client.c ├── http_client.h ├── http_client_builtin.c ├── http_client_curl.c ├── http_parser.c ├── http_parser.h ├── init.h ├── intvec.c ├── intvec.h ├── irc.c ├── irc.h ├── json.c ├── json.h ├── libsvc.c ├── libsvc.h ├── libsvc.mk ├── mbuf.c ├── mbuf.h ├── memstream.c ├── memstream.h ├── misc.c ├── misc.h ├── mkbundle ├── murmur3.c ├── murmur3.h ├── ntv.c ├── ntv.h ├── ntv_binary.c ├── ntv_cbor.c ├── ntv_json.c ├── ntv_msgpack.c ├── ntv_xml.c ├── queue.h ├── redblack.h ├── skeleton ├── Makefile ├── mk │ ├── Darwin.mk │ ├── Linux.mk │ └── asan.mk └── src │ └── main.c ├── sock.c ├── sock.h ├── sources.mk ├── stream.c ├── stream.h ├── strtab.h ├── strvec.c ├── strvec.h ├── talloc.c ├── talloc.h ├── task.c ├── task.h ├── tbm.c ├── tbm.h ├── tcp.c ├── tcp.h ├── tcp_server.c ├── threading.h ├── trace.c ├── trace.h ├── trap.c ├── trap.h ├── utf8.c ├── utf8.h ├── vec.h ├── websocket.c ├── websocket.h ├── websocket_client.c └── websocket_client.h /.clang-format: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | *.d 3 | *.o 4 | libsvc.so 5 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/Makefile -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/README -------------------------------------------------------------------------------- /acme.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/acme.c -------------------------------------------------------------------------------- /acme.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/acme.h -------------------------------------------------------------------------------- /asyncio.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/asyncio.c -------------------------------------------------------------------------------- /asyncio.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/asyncio.h -------------------------------------------------------------------------------- /atomic.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/atomic.h -------------------------------------------------------------------------------- /aws.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/aws.c -------------------------------------------------------------------------------- /aws.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/aws.h -------------------------------------------------------------------------------- /azure.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/azure.c -------------------------------------------------------------------------------- /azure.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/azure.h -------------------------------------------------------------------------------- /bytestream.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/bytestream.h -------------------------------------------------------------------------------- /cfg.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/cfg.c -------------------------------------------------------------------------------- /cfg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/cfg.h -------------------------------------------------------------------------------- /cmd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/cmd.c -------------------------------------------------------------------------------- /cmd.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/cmd.h -------------------------------------------------------------------------------- /cookie.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/cookie.c -------------------------------------------------------------------------------- /cookie.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/cookie.h -------------------------------------------------------------------------------- /ctrlsock.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/ctrlsock.c -------------------------------------------------------------------------------- /ctrlsock.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/ctrlsock.h -------------------------------------------------------------------------------- /curlhelpers.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/curlhelpers.c -------------------------------------------------------------------------------- /curlhelpers.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/curlhelpers.h -------------------------------------------------------------------------------- /db.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/db.c -------------------------------------------------------------------------------- /db.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/db.h -------------------------------------------------------------------------------- /dbl.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/dbl.c -------------------------------------------------------------------------------- /dbl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/dbl.h -------------------------------------------------------------------------------- /dial.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/dial.c -------------------------------------------------------------------------------- /dial.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/dial.h -------------------------------------------------------------------------------- /dns.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/dns.c -------------------------------------------------------------------------------- /dns.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/dns.h -------------------------------------------------------------------------------- /err.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/err.c -------------------------------------------------------------------------------- /err.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/err.h -------------------------------------------------------------------------------- /filebundle.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/filebundle.h -------------------------------------------------------------------------------- /filebundle_disk.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/filebundle_disk.c -------------------------------------------------------------------------------- /filebundle_embedded.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/filebundle_embedded.c -------------------------------------------------------------------------------- /fpipe.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/fpipe.c -------------------------------------------------------------------------------- /fpipe.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/fpipe.h -------------------------------------------------------------------------------- /gcp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/gcp.c -------------------------------------------------------------------------------- /gcp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/gcp.h -------------------------------------------------------------------------------- /gitver.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/gitver.mk -------------------------------------------------------------------------------- /htsbuf.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/htsbuf.c -------------------------------------------------------------------------------- /htsbuf.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/htsbuf.h -------------------------------------------------------------------------------- /htsmsg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/htsmsg.h -------------------------------------------------------------------------------- /http.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/http.c -------------------------------------------------------------------------------- /http.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/http.h -------------------------------------------------------------------------------- /http_client.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/http_client.c -------------------------------------------------------------------------------- /http_client.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/http_client.h -------------------------------------------------------------------------------- /http_client_builtin.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/http_client_builtin.c -------------------------------------------------------------------------------- /http_client_curl.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/http_client_curl.c -------------------------------------------------------------------------------- /http_parser.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/http_parser.c -------------------------------------------------------------------------------- /http_parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/http_parser.h -------------------------------------------------------------------------------- /init.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/init.h -------------------------------------------------------------------------------- /intvec.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/intvec.c -------------------------------------------------------------------------------- /intvec.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/intvec.h -------------------------------------------------------------------------------- /irc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/irc.c -------------------------------------------------------------------------------- /irc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/irc.h -------------------------------------------------------------------------------- /json.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/json.c -------------------------------------------------------------------------------- /json.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/json.h -------------------------------------------------------------------------------- /libsvc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/libsvc.c -------------------------------------------------------------------------------- /libsvc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/libsvc.h -------------------------------------------------------------------------------- /libsvc.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/libsvc.mk -------------------------------------------------------------------------------- /mbuf.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/mbuf.c -------------------------------------------------------------------------------- /mbuf.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/mbuf.h -------------------------------------------------------------------------------- /memstream.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/memstream.c -------------------------------------------------------------------------------- /memstream.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/memstream.h -------------------------------------------------------------------------------- /misc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/misc.c -------------------------------------------------------------------------------- /misc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/misc.h -------------------------------------------------------------------------------- /mkbundle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/mkbundle -------------------------------------------------------------------------------- /murmur3.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/murmur3.c -------------------------------------------------------------------------------- /murmur3.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/murmur3.h -------------------------------------------------------------------------------- /ntv.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/ntv.c -------------------------------------------------------------------------------- /ntv.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/ntv.h -------------------------------------------------------------------------------- /ntv_binary.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/ntv_binary.c -------------------------------------------------------------------------------- /ntv_cbor.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/ntv_cbor.c -------------------------------------------------------------------------------- /ntv_json.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/ntv_json.c -------------------------------------------------------------------------------- /ntv_msgpack.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/ntv_msgpack.c -------------------------------------------------------------------------------- /ntv_xml.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/ntv_xml.c -------------------------------------------------------------------------------- /queue.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/queue.h -------------------------------------------------------------------------------- /redblack.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/redblack.h -------------------------------------------------------------------------------- /skeleton/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/skeleton/Makefile -------------------------------------------------------------------------------- /skeleton/mk/Darwin.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/skeleton/mk/Darwin.mk -------------------------------------------------------------------------------- /skeleton/mk/Linux.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/skeleton/mk/Linux.mk -------------------------------------------------------------------------------- /skeleton/mk/asan.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/skeleton/mk/asan.mk -------------------------------------------------------------------------------- /skeleton/src/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/skeleton/src/main.c -------------------------------------------------------------------------------- /sock.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/sock.c -------------------------------------------------------------------------------- /sock.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/sock.h -------------------------------------------------------------------------------- /sources.mk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/sources.mk -------------------------------------------------------------------------------- /stream.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/stream.c -------------------------------------------------------------------------------- /stream.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/stream.h -------------------------------------------------------------------------------- /strtab.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/strtab.h -------------------------------------------------------------------------------- /strvec.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/strvec.c -------------------------------------------------------------------------------- /strvec.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/strvec.h -------------------------------------------------------------------------------- /talloc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/talloc.c -------------------------------------------------------------------------------- /talloc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/talloc.h -------------------------------------------------------------------------------- /task.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/task.c -------------------------------------------------------------------------------- /task.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/task.h -------------------------------------------------------------------------------- /tbm.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/tbm.c -------------------------------------------------------------------------------- /tbm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/tbm.h -------------------------------------------------------------------------------- /tcp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/tcp.c -------------------------------------------------------------------------------- /tcp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/tcp.h -------------------------------------------------------------------------------- /tcp_server.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/tcp_server.c -------------------------------------------------------------------------------- /threading.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/threading.h -------------------------------------------------------------------------------- /trace.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/trace.c -------------------------------------------------------------------------------- /trace.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/trace.h -------------------------------------------------------------------------------- /trap.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/trap.c -------------------------------------------------------------------------------- /trap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/trap.h -------------------------------------------------------------------------------- /utf8.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/utf8.c -------------------------------------------------------------------------------- /utf8.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/utf8.h -------------------------------------------------------------------------------- /vec.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/vec.h -------------------------------------------------------------------------------- /websocket.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/websocket.c -------------------------------------------------------------------------------- /websocket.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/websocket.h -------------------------------------------------------------------------------- /websocket_client.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/websocket_client.c -------------------------------------------------------------------------------- /websocket_client.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andoma/libsvc/HEAD/websocket_client.h --------------------------------------------------------------------------------