From 3dae30ed5e543dc73fc993334ef56b9b157b9b3c Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 24 Jan 2018 17:38:16 -0800 Subject: fixes #173 Define public HTTP server API This introduces enough of the HTTP API to support fully server applications, including creation of websocket style protocols, pluggable handlers, and so forth. We have also introduced scatter/gather I/O (rudimentary) for aios, and made other enhancements to the AIO framework. The internals of the AIOs themselves are now fully private, and we have eliminated the aio->a_addr member, with plans to remove the pipe and possibly message members as well. A few other minor issues were found and fixed as well. The HTTP API includes request, response, and connection objects, which can be used with both servers and clients. It also defines the HTTP server and handler objects, which support server applications. Support for client applications will require a client object to be exposed, and that should be happening shortly. None of this is "documented" yet, bug again, we will follow up shortly. --- src/protocol/reqrep0/req.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/protocol/reqrep0/req.c') diff --git a/src/protocol/reqrep0/req.c b/src/protocol/reqrep0/req.c index 94c7f1a0..2a641933 100644 --- a/src/protocol/reqrep0/req.c +++ b/src/protocol/reqrep0/req.c @@ -1,6 +1,6 @@ // -// Copyright 2017 Garrett D'Amore -// Copyright 2017 Capitar IT Group BV +// Copyright 2018 Staysail Systems, Inc. +// Copyright 2018 Capitar IT Group BV // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this @@ -71,7 +71,6 @@ struct req0_pipe { nni_mtx mtx; }; -static void req0_resender(void *); static void req0_getq_cb(void *); static void req0_sendraw_cb(void *); static void req0_sendcooked_cb(void *); @@ -312,7 +311,6 @@ static void req0_getq_cb(void *arg) { req0_pipe *p = arg; - req0_sock *s = p->req; // We should be in RAW mode. Cooked mode traffic bypasses // the upper write queue entirely, and should never end up here. -- cgit v1.2.3-70-g09d2