My Project
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
httpc.c File Reference
#include <3ds.h>

Go to the source code of this file.

Functions

Result httpcInit ()
 
void httpcExit ()
 
Result httpcOpenContext (httpcContext *context, char *url, u32 use_defaultproxy)
 
Result httpcCloseContext (httpcContext *context)
 
Result httpcAddRequestHeaderField (httpcContext *context, char *name, char *value)
 
Result httpcBeginRequest (httpcContext *context)
 
Result httpcReceiveData (httpcContext *context, u8 *buffer, u32 size)
 
Result httpcGetRequestState (httpcContext *context, httpcReqStatus *out)
 
Result httpcGetDownloadSizeState (httpcContext *context, u32 *downloadedsize, u32 *contentsize)
 
Result httpcGetResponseStatusCode (httpcContext *context, u32 *out, u64 delay)
 
Result httpcDownloadData (httpcContext *context, u8 *buffer, u32 size, u32 *downloadedsize)
 
Result HTTPC_Initialize (Handle handle)
 
Result HTTPC_CreateContext (Handle handle, char *url, Handle *contextHandle)
 
Result HTTPC_InitializeConnectionSession (Handle handle, Handle contextHandle)
 
Result HTTPC_SetProxyDefault (Handle handle, Handle contextHandle)
 
Result HTTPC_CloseContext (Handle handle, Handle contextHandle)
 
Result HTTPC_AddRequestHeaderField (Handle handle, Handle contextHandle, char *name, char *value)
 
Result HTTPC_BeginRequest (Handle handle, Handle contextHandle)
 
Result HTTPC_ReceiveData (Handle handle, Handle contextHandle, u8 *buffer, u32 size)
 
Result HTTPC_GetRequestState (Handle handle, Handle contextHandle, httpcReqStatus *out)
 
Result HTTPC_GetDownloadSizeState (Handle handle, Handle contextHandle, u32 *downloadedsize, u32 *contentsize)
 
Result HTTPC_GetResponseStatusCode (Handle handle, Handle contextHandle, u32 *out)
 

Variables

Handle __httpc_servhandle = 0
 

Function Documentation

Result HTTPC_AddRequestHeaderField ( Handle  handle,
Handle  contextHandle,
char *  name,
char *  value 
)

Definition at line 201 of file httpc.c.

Result HTTPC_BeginRequest ( Handle  handle,
Handle  contextHandle 
)

Definition at line 223 of file httpc.c.

Result HTTPC_CloseContext ( Handle  handle,
Handle  contextHandle 
)

Definition at line 188 of file httpc.c.

Result HTTPC_CreateContext ( Handle  handle,
char *  url,
Handle contextHandle 
)

Definition at line 142 of file httpc.c.

Result HTTPC_GetDownloadSizeState ( Handle  handle,
Handle  contextHandle,
u32 downloadedsize,
u32 contentsize 
)

Definition at line 267 of file httpc.c.

Result HTTPC_GetRequestState ( Handle  handle,
Handle  contextHandle,
httpcReqStatus out 
)

Definition at line 252 of file httpc.c.

Result HTTPC_GetResponseStatusCode ( Handle  handle,
Handle  contextHandle,
u32 out 
)

Definition at line 283 of file httpc.c.

Result HTTPC_Initialize ( Handle  handle)

Definition at line 126 of file httpc.c.

Result HTTPC_InitializeConnectionSession ( Handle  handle,
Handle  contextHandle 
)

Definition at line 161 of file httpc.c.

Result HTTPC_ReceiveData ( Handle  handle,
Handle  contextHandle,
u8 buffer,
u32  size 
)

Definition at line 236 of file httpc.c.

Result HTTPC_SetProxyDefault ( Handle  handle,
Handle  contextHandle 
)

Definition at line 175 of file httpc.c.

Result httpcAddRequestHeaderField ( httpcContext context,
char *  name,
char *  value 
)

Definition at line 59 of file httpc.c.

Result httpcBeginRequest ( httpcContext context)

Definition at line 64 of file httpc.c.

Result httpcCloseContext ( httpcContext context)

Definition at line 48 of file httpc.c.

Result httpcDownloadData ( httpcContext context,
u8 buffer,
u32  size,
u32 downloadedsize 
)

Definition at line 89 of file httpc.c.

void httpcExit ( )

Definition at line 20 of file httpc.c.

Result httpcGetDownloadSizeState ( httpcContext context,
u32 downloadedsize,
u32 contentsize 
)

Definition at line 79 of file httpc.c.

Result httpcGetRequestState ( httpcContext context,
httpcReqStatus out 
)

Definition at line 74 of file httpc.c.

Result httpcGetResponseStatusCode ( httpcContext context,
u32 out,
u64  delay 
)

Definition at line 84 of file httpc.c.

Result httpcInit ( )

Definition at line 5 of file httpc.c.

Result httpcOpenContext ( httpcContext context,
char *  url,
u32  use_defaultproxy 
)

Definition at line 27 of file httpc.c.

Result httpcReceiveData ( httpcContext context,
u8 buffer,
u32  size 
)

Definition at line 69 of file httpc.c.

Variable Documentation

Handle __httpc_servhandle = 0

Definition at line 3 of file httpc.c.