w3types.h

This is the verbatim text of the w3types.h include file.

#ifndef __W3TYPES_H__
#define __W3TYPES_H__

#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
// #include <w3uri.h>


typedef struct {
  /// Name of the host running the server.
  char      *hostname;
  /// Complete path to the file including all necessary slashes and so on.
  char      *path;
  /// Complete filename of the file to be retrieved. THIS IS NOT USED YET !
  char	    *filename;
  /// Port number of the server process. HTTP servers normally run on port 80.
  short int port;

} w3URI;


typedef struct {
  /// Name of the host running the server.
  char	    *hostname;
  /// Contains a valid socket descriptor after a connection has successfully been set up.
  int       socket;
  /// Contains the sockaddr data used by lower level functions. Normally the user should not need to know about this.
  struct    sockaddr_in sockaddr;
  /// Port number of the server process. HTTP servers normally run on port 80.
  short int port;

} w3ClientConnection;


typedef struct {
  /// URI structure describing the file containing the document.
  w3URI        uri;
  /// The actual document data. Normally filled in by <CODE>w3ClientGetDocument()</CODE>.
  char         *data;
  /// Length of the document data.
  unsigned int dataLength;
} w3Document;

typedef int boolean;

#define true 1
#define false 0

#ifndef CR
#define CR 13
#endif

#ifndef LF
#define LF 10
#endif

#endif


Generated at Thu Jun 1 21:36:22 2000 for HTTP Client advanced version by doxygen  written by Dimitri van Heesch, © 1997-1999