aqhome: more work on http endpoint.

This commit is contained in:
Martin Preuss
2023-07-19 01:25:43 +02:00
parent 5852ad9a1e
commit 3eb0a9afa9
3 changed files with 159 additions and 46 deletions

View File

@@ -19,6 +19,7 @@
enum {
AQH_EndpointHttpd_ReadMode_Aborted=-1,
AQH_EndpointHttpd_ReadMode_Command=0,
AQH_EndpointHttpd_ReadMode_Status,
AQH_EndpointHttpd_ReadMode_Headers,
@@ -37,8 +38,8 @@ struct AQH_ENDPOINT_HTTP {
GWEN_MSG_ENDPOINT_CHECKSOCKETS_FN checkSocketsFn;
GWEN_BUFFER *currentReadBuffer;
GWEN_DB_NODE *currentReadCommand;
GWEN_DB_NODE *currentReadHeader;
GWEN_DB_NODE *dbCurrentReadCommand;
GWEN_DB_NODE *dbCurrentReadHeader;
int currentHeaderPos;
int currentBodyPos;
int currentBodySize;