X-Git-Url: http://git.dolda2000.com/gitweb/?a=blobdiff_plain;f=include%2Fhttp.h;fp=include%2Fhttp.h;h=e6d10204d13803f28902cf22b459847f34585d71;hb=f4663439b18d84214325e4d3ba50b79c029b79e9;hp=0456d5aa105408eac7afc3a01ad395525bbab76a;hpb=061d5c595dcaa3082efc92cfe467cae9cd5e2f52;p=doldaconnect.git diff --git a/include/http.h b/include/http.h index 0456d5a..e6d1020 100644 --- a/include/http.h +++ b/include/http.h @@ -20,6 +20,8 @@ #ifndef _HTTP_H #define _HTTP_H +#include + struct hturlinfo { char *host; int port; @@ -28,7 +30,9 @@ struct hturlinfo { }; struct htconn { + int state; int fd; + struct addrinfo *ailist, *curai; char *outbuf, *inbuf; size_t outbufsize, outbufdata; size_t inbufsize, inbufdata; @@ -40,4 +44,9 @@ struct htcookie { char *name, *val; }; +struct hturlinfo *parseurl(char *url); +void freeurl(struct hturlinfo *ui); +struct htconn *htconnect(struct hturlinfo *ui); +int htpollflags(struct htconn *hc); + #endif