⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 http.h

📁 xyzzy is a program for the Nintendo Wii which will read a console s OTP key storage and dump out the
💻 H
字号:
#ifndef _HTTP_H_#define _HTTP_H_#include <gctypes.h>#define TCP_CONNECT_TIMEOUT 5000#define TCP_BLOCK_SIZE (16 * 1024)#define TCP_BLOCK_RECV_TIMEOUT 16000#define TCP_BLOCK_SEND_TIMEOUT 4000s32 tcp_socket (void);s32 tcp_connect (char *host, const u16 port);char * tcp_readln (const s32 s, const u16 max_length, const s64 start_time,					const u16 timeout);bool tcp_read (const s32 s, u8 **buffer, const u32 length);bool tcp_write (const s32 s, const u8 *buffer, const u32 length);#define HTTP_TIMEOUT 3000000typedef enum {	HTTPR_OK,	HTTPR_ERR_CONNECT,	HTTPR_ERR_REQUEST,	HTTPR_ERR_STATUS,	HTTPR_ERR_TOOBIG,	HTTPR_ERR_RECEIVE} http_res;bool http_request (const char *url, const u32 max_size);bool http_get_result (u32 *http_status, u8 **content, u32 *length);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -