mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-15 16:05:10 +01:00
b0352c301e
* Added 2 new Nintendont settings (CC Rumble and IPL choices). (Greywolf) * Updated all the sources to compile with devkitPPC r28 and r29-1. (Greywolf) * Fixed loading banners from EmuNAND with a long path. (Greywolf) * Updated Libcustomfat to 1.1.1 + Ustealth. (Greywolf, Cyan) * Added support for Open source HBC TitleID.
35 lines
1.1 KiB
C
35 lines
1.1 KiB
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
|
|
#define NET_SIZE_UNKNOWN -0xFFFFFFF
|
|
#define NET_DEFAULT_SOCK -0xFFFFFFE
|
|
|
|
void Initialize_Network(int retries = 0);
|
|
void DeinitNetwork(void);
|
|
bool IsNetworkInit(void);
|
|
char * GetNetworkIP(void);
|
|
char * GetIncommingIP(void);
|
|
bool ShutdownWC24();
|
|
bool CheckConnection(const char *url, float timeout = 5.0f);
|
|
s32 network_request(s32 connection, const char * request, char * filename);
|
|
s32 network_read(s32 connection, u8 *buf, u32 len);
|
|
s32 download_request(const char * url, char * filename = NULL);
|
|
s32 DownloadWithResponse(const char * url, u8 **outbuffer, u32 *outsize);
|
|
void CloseConnection();
|
|
char * HEAD_Request(const char * url);
|
|
void HaltNetworkThread();
|
|
void ResumeNetworkWait();
|
|
void ResumeNetworkThread();
|
|
void InitNetworkThread();
|
|
void ShutdownNetworkThread();
|
|
|
|
#endif
|