3
Copyright (C) 1999 Martin Vogt
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU Library General Public License as published by
7
the Free Software Foundation.
9
For more information look at the file COPYRIGHT in this package
14
#ifndef __HTTPINPUTSTREAM_H
15
#define __HTTPINPUTSTREAM_H
18
#include "inputStream.h"
20
#ifndef __STRICT_ANSI__
21
#define __STRICT_ANSI__
31
#define SOCKETWRITEFUNC _write
36
#include <sys/param.h>
37
#include <sys/socket.h>
38
#include <netinet/in.h>
39
#include <arpa/inet.h>
41
#define SOCKETWRITEFUNC write
44
#include <sys/types.h>
47
class HttpInputStream : public InputStream{
55
int open(const char* dest);
60
int read(char* ptr,int size);
61
int seek(long bytePos);
64
long getBytePosition();
73
int writestring(int fd,char *string);
74
int readstring(char *string,int maxlen,FILE *f);
75
FILE* http_open(char *url);
78
unsigned long proxyip;
79
unsigned int proxyport;