00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00026 #ifndef __W3TYPES_H__
00027 #define __W3TYPES_H__
00028
00029 #include <sys/types.h>
00030 #include <sys/socket.h>
00031 #include <netinet/in.h>
00032
00033
00041 typedef struct {
00043 char *hostname;
00045 char *path;
00047 char *filename;
00049 short int port;
00050
00051 } w3URI;
00052
00056 typedef struct {
00058 char *hostname;
00060 int socket;
00062 struct sockaddr_in sockaddr;
00064 short int port;
00065
00066 } w3ClientConnection;
00067
00071 typedef struct {
00073 w3URI uri;
00075 char *data;
00077 unsigned int dataLength;
00078 } w3Document;
00079
00080 typedef int boolean;
00081
00082 #define true 1
00083 #define false 0
00084
00085 #ifndef CR
00086 #define CR 13
00087 #endif
00088
00089 #ifndef LF
00090 #define LF 10
00091 #endif
00092
00097 #endif
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107