00001 #ifndef I4HTTOOLS_H
00002 #define I4HTTOOLS_H
00003
00004 #include <stdio.h>
00005 #include <sys/socket.h>
00006 #include <netinet/in.h>
00007
00027 void badreq(FILE *client,const char *relPath, uint16_t port);
00028
00040 void notfound(FILE *client,const char *fullPath, const char *relPath, uint16_t port);
00041
00056 int checkpath(const char *relPath);
00057
00069 void printconn(FILE* stream,FILE* peer,const char *msg);
00070
00071 #endif