FS2_Open
Open source remastering of the Freespace 2 engine
ChttpGet Class Reference

#include <chttpget.h>

Public Member Functions

 ChttpGet (char *URL, char *localfile)
 
 ChttpGet (char *URL, char *localfile, char *proxyip, unsigned short proxyport)
 
 ~ChttpGet ()
 
void GetFile (char *URL, char *localfile)
 
int GetStatus ()
 
uint GetBytesIn ()
 
uint GetTotalBytes ()
 
void AbortGet ()
 
void WorkerThread ()
 

Public Attributes

bool m_Aborted
 

Protected Member Functions

int ConnectSocket ()
 
char * GetHTTPLine ()
 
uint ReadDataChannel ()
 

Protected Attributes

uint m_iBytesIn
 
uint m_iBytesTotal
 
uint m_State
 
bool m_ProxyEnabled
 
char * m_ProxyIP
 
char m_URL [MAX_URL_LEN]
 
ushort m_ProxyPort
 
char m_szUserName [100]
 
char m_szPassword [100]
 
char m_szHost [200]
 
char m_szDir [200]
 
char m_szFilename [100]
 
bool m_Aborting
 
SOCKET m_DataSock
 
FILE * LOCALFILE
 
char recv_buffer [1000]
 

Detailed Description

Definition at line 32 of file chttpget.h.

Constructor & Destructor Documentation

ChttpGet::ChttpGet ( char *  URL,
char *  localfile 
)

Definition at line 92 of file chttpget.cpp.

ChttpGet::ChttpGet ( char *  URL,
char *  localfile,
char *  proxyip,
unsigned short  proxyport 
)

Definition at line 84 of file chttpget.cpp.

ChttpGet::~ChttpGet ( )

Definition at line 191 of file chttpget.cpp.

Member Function Documentation

void ChttpGet::AbortGet ( )

Definition at line 70 of file chttpget.cpp.

int ChttpGet::ConnectSocket ( )
protected

Definition at line 317 of file chttpget.cpp.

unsigned int ChttpGet::GetBytesIn ( )

Definition at line 213 of file chttpget.cpp.

void ChttpGet::GetFile ( char *  URL,
char *  localfile 
)

Definition at line 99 of file chttpget.cpp.

char * ChttpGet::GetHTTPLine ( )
protected

Definition at line 462 of file chttpget.cpp.

int ChttpGet::GetStatus ( )

Definition at line 208 of file chttpget.cpp.

unsigned int ChttpGet::GetTotalBytes ( )

Definition at line 218 of file chttpget.cpp.

uint ChttpGet::ReadDataChannel ( )
protected

Definition at line 534 of file chttpget.cpp.

void ChttpGet::WorkerThread ( )

Definition at line 224 of file chttpget.cpp.

Member Data Documentation

FILE* ChttpGet::LOCALFILE
protected

Definition at line 69 of file chttpget.h.

bool ChttpGet::m_Aborted

Definition at line 44 of file chttpget.h.

bool ChttpGet::m_Aborting
protected

Definition at line 64 of file chttpget.h.

SOCKET ChttpGet::m_DataSock
protected

Definition at line 67 of file chttpget.h.

uint ChttpGet::m_iBytesIn
protected

Definition at line 50 of file chttpget.h.

uint ChttpGet::m_iBytesTotal
protected

Definition at line 51 of file chttpget.h.

bool ChttpGet::m_ProxyEnabled
protected

Definition at line 53 of file chttpget.h.

char* ChttpGet::m_ProxyIP
protected

Definition at line 54 of file chttpget.h.

ushort ChttpGet::m_ProxyPort
protected

Definition at line 56 of file chttpget.h.

uint ChttpGet::m_State
protected

Definition at line 52 of file chttpget.h.

char ChttpGet::m_szDir[200]
protected

Definition at line 61 of file chttpget.h.

char ChttpGet::m_szFilename[100]
protected

Definition at line 62 of file chttpget.h.

char ChttpGet::m_szHost[200]
protected

Definition at line 60 of file chttpget.h.

char ChttpGet::m_szPassword[100]
protected

Definition at line 59 of file chttpget.h.

char ChttpGet::m_szUserName[100]
protected

Definition at line 58 of file chttpget.h.

char ChttpGet::m_URL[MAX_URL_LEN]
protected

Definition at line 55 of file chttpget.h.

char ChttpGet::recv_buffer[1000]
protected

Definition at line 70 of file chttpget.h.


The documentation for this class was generated from the following files: