vitasdk
Documentation of the vitasdk
|
Exports for User.
Include the header file in your project:
Link the library to the executable:
Load the required module:
Functions | |
VITASDK_BUILD_ASSERT_EQ (0x10, SceHttpMemoryPoolStats) | |
VITASDK_BUILD_ASSERT_EQ (0x2C, SceHttpUriElement) | |
VITASDK_BUILD_ASSERT_EQ (8, SceHttpsData) | |
VITASDK_BUILD_ASSERT_EQ (8, SceHttpsCaList) | |
int | sceHttpInit (unsigned int poolSize) |
int | sceHttpTerm (void) |
int | sceHttpGetMemoryPoolStats (SceHttpMemoryPoolStats *currentStat) |
int | sceHttpSetAuthInfoCallback (int id, SceHttpAuthInfoCallback cbfunc, void *userArg) |
int | sceHttpSetAuthEnabled (int id, int enable) |
int | sceHttpGetAuthEnabled (int id, int *enable) |
int | sceHttpSetRedirectCallback (int id, SceHttpRedirectCallback cbfunc, void *userArg) |
int | sceHttpSetAutoRedirect (int id, int enable) |
int | sceHttpGetAutoRedirect (int id, int *enable) |
int | sceHttpSetResolveTimeOut (int id, unsigned int usec) |
int | sceHttpSetResolveRetry (int id, int retry) |
int | sceHttpSetConnectTimeOut (int id, unsigned int usec) |
int | sceHttpSetSendTimeOut (int id, unsigned int usec) |
int | sceHttpSetRecvTimeOut (int id, unsigned int usec) |
int | sceHttpSendRequest (int reqId, const void *postData, unsigned int size) |
int | sceHttpAbortRequest (int reqId) |
int | sceHttpGetResponseContentLength (int reqId, unsigned long long int *contentLength) |
int | sceHttpGetStatusCode (int reqId, int *statusCode) |
int | sceHttpGetAllResponseHeaders (int reqId, char **header, unsigned int *headerSize) |
int | sceHttpReadData (int reqId, void *data, unsigned int size) |
int | sceHttpAddRequestHeader (int id, const char *name, const char *value, unsigned int mode) |
int | sceHttpRemoveRequestHeader (int id, const char *name) |
int | sceHttpParseResponseHeader (const char *header, unsigned int headerLen, const char *fieldStr, const char **fieldValue, unsigned int *valueLen) |
int | sceHttpParseStatusLine (const char *statusLine, unsigned int lineLen, int *httpMajorVer, int *httpMinorVer, int *responseCode, const char **reasonPhrase, unsigned int *phraseLen) |
int | sceHttpCreateTemplate (const char *userAgent, int httpVer, int autoProxyConf) |
int | sceHttpDeleteTemplate (int tmplId) |
int | sceHttpCreateConnection (int tmplId, const char *serverName, const char *scheme, unsigned short port, int enableKeepalive) |
int | sceHttpCreateConnectionWithURL (int tmplId, const char *url, int enableKeepalive) |
int | sceHttpDeleteConnection (int connId) |
int | sceHttpCreateRequest (int connId, int method, const char *path, unsigned long long int contentLength) |
int | sceHttpCreateRequestWithURL (int connId, int method, const char *url, unsigned long long int contentLength) |
int | sceHttpDeleteRequest (int reqId) |
int | sceHttpSetResponseHeaderMaxSize (int id, unsigned int headerSize) |
int | sceHttpSetRequestContentLength (int id, unsigned long long int contentLength) |
int | sceHttpUriEscape (char *out, unsigned int *require, unsigned int prepare, const char *in) |
int | sceHttpUriUnescape (char *out, unsigned int *require, unsigned int prepare, const char *in) |
int | sceHttpUriParse (SceHttpUriElement *out, const char *srcUrl, void *pool, unsigned int *require, unsigned int prepare) |
int | sceHttpUriBuild (char *out, unsigned int *require, unsigned int prepare, const SceHttpUriElement *srcElement, unsigned int option) |
int | sceHttpUriMerge (char *mergedUrl, const char *url, const char *relativeUrl, unsigned int *require, unsigned int prepare, unsigned int option) |
int | sceHttpUriSweepPath (char *dst, const char *src, unsigned int srcSize) |
int | sceHttpsLoadCert (int caCertNum, const SceHttpsData **caList, const SceHttpsData *cert, const SceHttpsData *privKey) |
Register RootCA certificate for HTTPS authentication. More... | |
int | sceHttpsUnloadCert (void) |
int | sceHttpsEnableOption (unsigned int sslFlags) |
int | sceHttpsDisableOption (unsigned int sslFlags) |
int | sceHttpsGetSslError (int id, int *errNum, unsigned int *detail) |
int | sceHttpsSetSslCallback (int id, SceHttpsCallback cbfunc, void *userArg) |
int | sceHttpsGetCaList (SceHttpsCaList *caList) |
int | sceHttpsFreeCaList (SceHttpsCaList *caList) |
int | sceHttpSetCookieEnabled (int id, int enable) |
int | sceHttpGetCookieEnabled (int id, int *enable) |
int | sceHttpGetCookie (const char *url, char *cookie, unsigned int *cookieLength, unsigned int prepare, int secure) |
int | sceHttpAddCookie (const char *url, const char *cookie, unsigned int cookieLength) |
int | sceHttpSetCookieRecvCallback (int id, SceHttpCookieRecvCallback cbfunc, void *userArg) |
int | sceHttpSetCookieSendCallback (int id, SceHttpCookieSendCallback cbfunc, void *userArg) |
Typedefs | |
typedef int(* | SceHttpAuthInfoCallback) (int request, SceHttpAuthType authType, const char *realm, char *username, char *password, int needEntity, unsigned char **entityBody, unsigned int *entitySize, int *save, void *userArg) |
typedef int(* | SceHttpRedirectCallback) (int request, int statusCode, int *method, const char *location, void *userArg) |
typedef int(* | SceHttpsCallback) (unsigned int verifyEsrr, void *const sslCert[], int certNum, void *userArg) |
typedef int(* | SceHttpCookieRecvCallback) (int request, const char *url, const char *cookieHeader, unsigned int headerLen, void *userArg) |
typedef int(* | SceHttpCookieSendCallback) (int request, const char *url, const char *cookieHeader, void *userArg) |
Macros | |
#define | SCE_HTTP_DEFAULT_RESOLVER_TIMEOUT (1 * 1000 * 1000U) |
#define | SCE_HTTP_DEFAULT_RESOLVER_RETRY (5U) |
#define | SCE_HTTP_DEFAULT_CONNECT_TIMEOUT (30* 1000 * 1000U) |
#define | SCE_HTTP_DEFAULT_SEND_TIMEOUT (120* 1000 * 1000U) |
#define | SCE_HTTP_DEFAULT_RECV_TIMEOUT (120* 1000 * 1000U) |
#define | SCE_HTTP_DEFAULT_RECV_BLOCK_SIZE (1500U) |
#define | SCE_HTTP_DEFAULT_RESPONSE_HEADER_MAX (5000U) |
#define | SCE_HTTP_DEFAULT_REDIRECT_MAX (6U) |
#define | SCE_HTTP_DEFAULT_TRY_AUTH_MAX (6U) |
#define | SCE_HTTP_INVALID_ID 0 |
#define | SCE_HTTP_ENABLE (1) |
#define | SCE_HTTP_DISABLE (0) |
#define | SCE_HTTP_USERNAME_MAX_SIZE 256 |
#define | SCE_HTTP_PASSWORD_MAX_SIZE 256 |
struct SceHttpMemoryPoolStats |
struct SceHttpUriElement |
#define SCE_HTTP_DEFAULT_RESOLVER_TIMEOUT (1 * 1000 * 1000U) |
#define SCE_HTTP_DEFAULT_RESOLVER_RETRY (5U) |
#define SCE_HTTP_DEFAULT_CONNECT_TIMEOUT (30* 1000 * 1000U) |
#define SCE_HTTP_DEFAULT_SEND_TIMEOUT (120* 1000 * 1000U) |
#define SCE_HTTP_DEFAULT_RECV_TIMEOUT (120* 1000 * 1000U) |
#define SCE_HTTP_DEFAULT_RECV_BLOCK_SIZE (1500U) |
#define SCE_HTTP_DEFAULT_RESPONSE_HEADER_MAX (5000U) |
#define SCE_HTTP_DEFAULT_REDIRECT_MAX (6U) |
#define SCE_HTTP_DEFAULT_TRY_AUTH_MAX (6U) |
#define SCE_HTTP_INVALID_ID 0 |
#define SCE_HTTP_ENABLE (1) |
#define SCE_HTTP_DISABLE (0) |
#define SCE_HTTP_USERNAME_MAX_SIZE 256 |
#define SCE_HTTP_PASSWORD_MAX_SIZE 256 |
typedef int(* SceHttpAuthInfoCallback) (int request, SceHttpAuthType authType, const char *realm, char *username, char *password, int needEntity, unsigned char **entityBody, unsigned int *entitySize, int *save, void *userArg) |
typedef int(* SceHttpRedirectCallback) (int request, int statusCode, int *method, const char *location, void *userArg) |
typedef int(* SceHttpsCallback) (unsigned int verifyEsrr, void *const sslCert[], int certNum, void *userArg) |
typedef int(* SceHttpCookieRecvCallback) (int request, const char *url, const char *cookieHeader, unsigned int headerLen, void *userArg) |
typedef int(* SceHttpCookieSendCallback) (int request, const char *url, const char *cookieHeader, void *userArg) |
enum SceHttpErrorCode |
enum SceHttpsErrorCode |
enum SceHttpsSslErrorCode |
enum SceHttpStatuscode |
enum SceHttpUriBuildType |
enum SceHttpsFlag |
enum SceHttpMethods |
enum SceHttpHttpVersion |
enum SceHttpProxyMode |
enum SceHttpAddHeaderMode |
enum SceHttpAuthType |
enum SceHttpSslVersion |
VITASDK_BUILD_ASSERT_EQ | ( | 0x10 | , |
SceHttpMemoryPoolStats | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 0x2C | , |
SceHttpUriElement | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 8 | , |
SceHttpsData | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 8 | , |
SceHttpsCaList | |||
) |
int sceHttpInit | ( | unsigned int | poolSize | ) |
int sceHttpTerm | ( | void | ) |
int sceHttpGetMemoryPoolStats | ( | SceHttpMemoryPoolStats * | currentStat | ) |
int sceHttpSetAuthInfoCallback | ( | int | id, |
SceHttpAuthInfoCallback | cbfunc, | ||
void * | userArg | ||
) |
int sceHttpSetAuthEnabled | ( | int | id, |
int | enable | ||
) |
int sceHttpGetAuthEnabled | ( | int | id, |
int * | enable | ||
) |
int sceHttpSetRedirectCallback | ( | int | id, |
SceHttpRedirectCallback | cbfunc, | ||
void * | userArg | ||
) |
int sceHttpSetAutoRedirect | ( | int | id, |
int | enable | ||
) |
int sceHttpGetAutoRedirect | ( | int | id, |
int * | enable | ||
) |
int sceHttpSetResolveTimeOut | ( | int | id, |
unsigned int | usec | ||
) |
int sceHttpSetResolveRetry | ( | int | id, |
int | retry | ||
) |
int sceHttpSetConnectTimeOut | ( | int | id, |
unsigned int | usec | ||
) |
int sceHttpSetSendTimeOut | ( | int | id, |
unsigned int | usec | ||
) |
int sceHttpSetRecvTimeOut | ( | int | id, |
unsigned int | usec | ||
) |
int sceHttpSendRequest | ( | int | reqId, |
const void * | postData, | ||
unsigned int | size | ||
) |
int sceHttpAbortRequest | ( | int | reqId | ) |
int sceHttpGetResponseContentLength | ( | int | reqId, |
unsigned long long int * | contentLength | ||
) |
int sceHttpGetStatusCode | ( | int | reqId, |
int * | statusCode | ||
) |
int sceHttpGetAllResponseHeaders | ( | int | reqId, |
char ** | header, | ||
unsigned int * | headerSize | ||
) |
int sceHttpReadData | ( | int | reqId, |
void * | data, | ||
unsigned int | size | ||
) |
int sceHttpAddRequestHeader | ( | int | id, |
const char * | name, | ||
const char * | value, | ||
unsigned int | mode | ||
) |
int sceHttpRemoveRequestHeader | ( | int | id, |
const char * | name | ||
) |
int sceHttpParseResponseHeader | ( | const char * | header, |
unsigned int | headerLen, | ||
const char * | fieldStr, | ||
const char ** | fieldValue, | ||
unsigned int * | valueLen | ||
) |
int sceHttpParseStatusLine | ( | const char * | statusLine, |
unsigned int | lineLen, | ||
int * | httpMajorVer, | ||
int * | httpMinorVer, | ||
int * | responseCode, | ||
const char ** | reasonPhrase, | ||
unsigned int * | phraseLen | ||
) |
int sceHttpCreateTemplate | ( | const char * | userAgent, |
int | httpVer, | ||
int | autoProxyConf | ||
) |
int sceHttpDeleteTemplate | ( | int | tmplId | ) |
int sceHttpCreateConnection | ( | int | tmplId, |
const char * | serverName, | ||
const char * | scheme, | ||
unsigned short | port, | ||
int | enableKeepalive | ||
) |
int sceHttpCreateConnectionWithURL | ( | int | tmplId, |
const char * | url, | ||
int | enableKeepalive | ||
) |
int sceHttpDeleteConnection | ( | int | connId | ) |
int sceHttpCreateRequest | ( | int | connId, |
int | method, | ||
const char * | path, | ||
unsigned long long int | contentLength | ||
) |
int sceHttpCreateRequestWithURL | ( | int | connId, |
int | method, | ||
const char * | url, | ||
unsigned long long int | contentLength | ||
) |
int sceHttpDeleteRequest | ( | int | reqId | ) |
int sceHttpSetResponseHeaderMaxSize | ( | int | id, |
unsigned int | headerSize | ||
) |
int sceHttpSetRequestContentLength | ( | int | id, |
unsigned long long int | contentLength | ||
) |
int sceHttpUriEscape | ( | char * | out, |
unsigned int * | require, | ||
unsigned int | prepare, | ||
const char * | in | ||
) |
int sceHttpUriUnescape | ( | char * | out, |
unsigned int * | require, | ||
unsigned int | prepare, | ||
const char * | in | ||
) |
int sceHttpUriParse | ( | SceHttpUriElement * | out, |
const char * | srcUrl, | ||
void * | pool, | ||
unsigned int * | require, | ||
unsigned int | prepare | ||
) |
int sceHttpUriBuild | ( | char * | out, |
unsigned int * | require, | ||
unsigned int | prepare, | ||
const SceHttpUriElement * | srcElement, | ||
unsigned int | option | ||
) |
int sceHttpUriMerge | ( | char * | mergedUrl, |
const char * | url, | ||
const char * | relativeUrl, | ||
unsigned int * | require, | ||
unsigned int | prepare, | ||
unsigned int | option | ||
) |
int sceHttpUriSweepPath | ( | char * | dst, |
const char * | src, | ||
unsigned int | srcSize | ||
) |
int sceHttpsLoadCert | ( | int | caCertNum, |
const SceHttpsData ** | caList, | ||
const SceHttpsData * | cert, | ||
const SceHttpsData * | privKey | ||
) |
Register RootCA certificate for HTTPS authentication.
[in] | caCertNum | - Number of elements of the list referncing to RootCA certificate |
[in] | caList | - List referencing to RootCA certificate |
[in] | cert | - Client certificate |
[in] | privKey | - Private key |
int sceHttpsUnloadCert | ( | void | ) |
int sceHttpsEnableOption | ( | unsigned int | sslFlags | ) |
int sceHttpsDisableOption | ( | unsigned int | sslFlags | ) |
int sceHttpsGetSslError | ( | int | id, |
int * | errNum, | ||
unsigned int * | detail | ||
) |
int sceHttpsSetSslCallback | ( | int | id, |
SceHttpsCallback | cbfunc, | ||
void * | userArg | ||
) |
int sceHttpsGetCaList | ( | SceHttpsCaList * | caList | ) |
int sceHttpsFreeCaList | ( | SceHttpsCaList * | caList | ) |
int sceHttpSetCookieEnabled | ( | int | id, |
int | enable | ||
) |
int sceHttpGetCookieEnabled | ( | int | id, |
int * | enable | ||
) |
int sceHttpGetCookie | ( | const char * | url, |
char * | cookie, | ||
unsigned int * | cookieLength, | ||
unsigned int | prepare, | ||
int | secure | ||
) |
int sceHttpAddCookie | ( | const char * | url, |
const char * | cookie, | ||
unsigned int | cookieLength | ||
) |
int sceHttpSetCookieRecvCallback | ( | int | id, |
SceHttpCookieRecvCallback | cbfunc, | ||
void * | userArg | ||
) |
int sceHttpSetCookieSendCallback | ( | int | id, |
SceHttpCookieSendCallback | cbfunc, | ||
void * | userArg | ||
) |