00001 #ifndef I4HTTOOLS_H
00002 #define I4HTTOOLS_H
00003
00004 #include <stdio.h>
00005 #include <sys/socket.h>
00006 #include <netinet/in.h>
00007
00029 void badreq(FILE *client,const char *relPath, uint16_t port);
00030
00044 void notfound(FILE *client,const char *fullPath, const char *relPath, uint16_t port);
00045
00058 int checkpath(const char *relPath);
00059
00071 void printconn(FILE* stream,FILE* peer,const char *msg);
00072
00073 #endif
00074