2009-11-02 22:15:28 +00:00
|
|
|
/****************************************************************************
|
|
|
|
* Network Operations
|
|
|
|
* for USB Loader GX
|
|
|
|
*
|
|
|
|
* HTTP operations
|
|
|
|
* Written by dhewg/bushing modified by dimok
|
|
|
|
****************************************************************************/
|
2009-06-17 20:44:00 +00:00
|
|
|
#ifndef _NETWORKOPS_H_
|
2009-11-02 22:15:28 +00:00
|
|
|
#define _NETWORKOPS_H_
|
|
|
|
|
2011-07-25 22:28:22 +00:00
|
|
|
#define NETWORKBLOCKSIZE 5*1024 //5KB
|
2011-06-25 19:50:57 +00:00
|
|
|
#define NET_DEFAULT_SOCK -0xFFFFFFE
|
|
|
|
|
2017-12-14 15:26:57 +01:00
|
|
|
void Initialize_Network(int retries = 0);
|
2010-12-05 19:24:32 +00:00
|
|
|
void DeinitNetwork(void);
|
2010-09-24 00:48:03 +00:00
|
|
|
bool IsNetworkInit(void);
|
|
|
|
char * GetNetworkIP(void);
|
|
|
|
char * GetIncommingIP(void);
|
2010-12-03 18:38:57 +00:00
|
|
|
s32 network_read(s32 connection, u8 *buf, u32 len);
|
2009-11-02 22:15:28 +00:00
|
|
|
void CloseConnection();
|
|
|
|
void HaltNetworkThread();
|
|
|
|
void ResumeNetworkWait();
|
|
|
|
void ResumeNetworkThread();
|
|
|
|
void InitNetworkThread();
|
|
|
|
void ShutdownNetworkThread();
|
|
|
|
|
2009-05-28 12:12:52 +00:00
|
|
|
#endif
|