| 1 | #ifndef _ASH_HTPARSER_H |
| 2 | #define _ASH_HTPARSER_H |
| 3 | |
| 4 | struct conn { |
| 5 | int (*initreq)(struct conn *, struct hthead *); |
| 6 | void *pdata; |
| 7 | }; |
| 8 | |
| 9 | struct mtbuf { |
| 10 | struct muth **b; |
| 11 | size_t s, d; |
| 12 | }; |
| 13 | |
| 14 | void serve(FILE *in, struct conn *conn); |
| 15 | |
| 16 | int listensock4(int port); |
| 17 | int listensock6(int port); |
| 18 | char *formathaddress(struct sockaddr *name, socklen_t namelen); |
| 19 | void handleplain(int argc, char **argp, char **argv); |
| 20 | #ifdef HAVE_GNUTLS |
| 21 | void handlegnussl(int argc, char **argp, char **argv); |
| 22 | #endif |
| 23 | |
| 24 | extern struct mtbuf listeners; |
| 25 | |
| 26 | #endif |