aqhome: started http endpoint.
This commit is contained in:
@@ -17,8 +17,10 @@
|
||||
#include <gwenhywfar/buffer.h>
|
||||
|
||||
|
||||
|
||||
enum {
|
||||
AQH_EndpointHttpd_ReadMode_Command=0,
|
||||
AQH_EndpointHttpd_ReadMode_Status,
|
||||
AQH_EndpointHttpd_ReadMode_Headers,
|
||||
AQH_EndpointHttpd_ReadMode_Body
|
||||
};
|
||||
@@ -28,9 +30,16 @@ enum {
|
||||
typedef struct AQH_ENDPOINT_HTTP AQH_ENDPOINT_HTTP;
|
||||
struct AQH_ENDPOINT_HTTP {
|
||||
int readMode;
|
||||
|
||||
uint32_t flags;
|
||||
|
||||
GWEN_MSG_ENDPOINT_ADDSOCKETS_FN addSocketsFn;
|
||||
GWEN_MSG_ENDPOINT_CHECKSOCKETS_FN checkSocketsFn;
|
||||
|
||||
GWEN_BUFFER *currentReadBuffer;
|
||||
GWEN_DB_NODE *currentReadCommand;
|
||||
GWEN_DB_NODE *currentReadHeader;
|
||||
int currentHeaderPos;
|
||||
int currentBodyPos;
|
||||
int currentBodySize;
|
||||
int lastLineStartPos;
|
||||
|
||||
Reference in New Issue
Block a user