1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
#ifndef __HTTPGET_UTIL__
#define __HTTPGET_UTIL__
void Util();
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/time.h>
#include <sys/select.h>
#include <time.h>
#include <pthread.h>
#include <unistd.h>
#include <string.h>
#include <stdint.h>
#include <sys/stat.h>
class Splitter {
protected:
public:
//lame preallocation
char *Tokens[100];
int TokenCount;
Splitter(char *string, char delimiter);
~Splitter();
};
class String {
char *StrPtr;
public:
void Assign(char *source);
int Length();
String();
String(char *source);
~String();
const char* c_str();
String& operator= (const char* source);
};
#endif |