usbloadergx/source/network/networkops.h
dimok321 d3d2055583 *Changed to download files under their real filename
*Small change to the download request function, added filename reading
2009-11-02 22:15:28 +00:00

31 lines
847 B
C

/****************************************************************************
* Network Operations
* for USB Loader GX
*
* HTTP operations
* Written by dhewg/bushing modified by dimok
****************************************************************************/
#ifndef _NETWORKOPS_H_
#define _NETWORKOPS_H_
#define NETWORKBLOCKSIZE 5*1024 //5KB
void Initialize_Network(void);
bool IsNetworkInit(void);
char * GetNetworkIP(void);
char * GetIncommingIP(void);
bool ShutdownWC24();
s32 network_request(const char * request, char * filename);
s32 network_read(u8 *buf, u32 len);
s32 download_request(const char * url, char * filename = NULL);
void CloseConnection();
int CheckUpdate();
void HaltNetworkThread();
void ResumeNetworkWait();
void ResumeNetworkThread();
void InitNetworkThread();
void ShutdownNetworkThread();
#endif