RetroArch
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#include <sys/param.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <net/if.h>
#include <netdb.h>
#include <strings.h>
#include "miniupnpcstrings.h"
#include "miniwget.h"
#include "connecthostport.h"
#include "receivedata.h"
Macros | |
#define | closesocket close |
#define | MIN(x, y) (((x)<(y))?(x):(y)) |
#define | MAXHOSTNAMELEN 64 |
Functions | |
void * | getHTTPResponse (int s, int *size, int *status_code) |
static void * | miniwget3 (const char *host, unsigned short port, const char *path, int *size, char *addr_str, int addr_str_len, const char *httpversion, unsigned int scope_id, int *status_code) |
static void * | miniwget2 (const char *host, unsigned short port, const char *path, int *size, char *addr_str, int addr_str_len, unsigned int scope_id, int *status_code) |
int | parseURL (const char *url, char *hostname, unsigned short *port, char **path, unsigned int *scope_id) |
void * | miniwget (const char *url, int *size, unsigned int scope_id, int *status_code) |
void * | miniwget_getaddr (const char *url, int *size, char *addr, int addrlen, unsigned int scope_id, int *status_code) |
#define closesocket close |
#define MAXHOSTNAMELEN 64 |
void* getHTTPResponse | ( | int | s, |
int * | size, | ||
int * | status_code | ||
) |
|
static |
|
static |
void* miniwget_getaddr | ( | const char * | url, |
int * | size, | ||
char * | addr, | ||
int | addrlen, | ||
unsigned int | scope_id, | ||
int * | status_code | ||
) |
int parseURL | ( | const char * | url, |
char * | hostname, | ||
unsigned short * | port, | ||
char ** | path, | ||
unsigned int * | scope_id | ||
) |