mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
Update http_query
This commit is contained in:
parent
e355118398
commit
4cc853b9be
21
http_lib.c
21
http_lib.c
@ -144,15 +144,18 @@ static http_retcode http_query(char *command, char *url,
|
|||||||
* Limitations: the url is truncated to first 256 chars and
|
* Limitations: the url is truncated to first 256 chars and
|
||||||
* the server name to 128 in case of proxy request.
|
* the server name to 128 in case of proxy request.
|
||||||
*/
|
*/
|
||||||
static http_retcode http_query(command, url, additional_header, mode,
|
|
||||||
data, length, pfd)
|
/*
|
||||||
char *command; /* command to send */
|
command - command to send
|
||||||
char *url; /* url / filename queried */
|
url - url / filename queried
|
||||||
char *additional_header; /* additional header */
|
additional_header - additional header
|
||||||
querymode mode; /* type of query */
|
mode - type of query
|
||||||
char *data; /* Data to send after header. If NULL, not data is sent */
|
data - Data to send after header. If NULL, not data is sent
|
||||||
int length; /* size of data */
|
length - size of data
|
||||||
int *pfd; /* pointer to variable where to set file descriptor value */
|
pfd - pointer to variable where to set file descriptor value
|
||||||
|
*/
|
||||||
|
static http_retcode http_query(char *command, char *url, char *additional_header, querymode mode,
|
||||||
|
char *data, int length, int *pfd)
|
||||||
{
|
{
|
||||||
int s;
|
int s;
|
||||||
struct hostent *hp;
|
struct hostent *hp;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user