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