doc: Documented htpipe.
[ashd.git] / src / htparser.h
index f98624a..d9f014d 100644 (file)
@@ -6,13 +6,21 @@ struct conn {
     void *pdata;
 };
 
-void serve(FILE *in, struct conn *conn);
+struct mtbuf {
+    struct muth **b;
+    size_t s, d;
+};
+
+void serve(struct bufio *in, int infd, struct conn *conn);
 
 int listensock4(int port);
 int listensock6(int port);
+char *formathaddress(struct sockaddr *name, socklen_t namelen);
 void handleplain(int argc, char **argp, char **argv);
 #ifdef HAVE_GNUTLS
 void handlegnussl(int argc, char **argp, char **argv);
 #endif
 
+extern struct mtbuf listeners;
+
 #endif