w3types.h

Go to the documentation of this file.
00001 /*
00002     Copyright (C) by Christian Gosch.
00003 
00004     This file is part of w3server, a very small HTTP(-subset) server.
00005 
00006     w3server is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or
00009     (at your option) any later version.
00010 
00011     Foobar is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014     GNU General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with Foobar; if not, write to the Free Software
00018     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
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 /* #include <w3uri.h> */
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 

Generated on Thu Jul 6 15:37:31 2006 for w3server by  doxygen 1.4.6