Go to the source code of this file.
Enumerations | |
| enum | PspHttpMethod { PSP_HTTP_METHOD_GET, PSP_HTTP_METHOD_POST, PSP_HTTP_METHOD_HEAD } |
Functions | |
| int | sceHttpInit (unsigned int unknown1) |
| Init the http library. | |
| int | sceHttpEnd (void) |
| Terminate the http library. | |
| int | sceHttpCreateTemplate (char *agent, int unknown1, int unknown2) |
| Create a http template. | |
| int | sceHttpDeleteTemplate (int templateid) |
| Delete a http template. | |
| int | sceHttpCreateConnection (int templateid, char *host, char *unknown1, unsigned short port, int unknown2) |
| Create a http connection. | |
| int | sceHttpCreateConnectionWithURL (int templateid, const char *url, int unknown1) |
| Create a http connection to a url. | |
| int | sceHttpDeleteConnection (int connectionid) |
| Delete a http connection. | |
| int | sceHttpCreateRequest (int connectionid, PspHttpMethod method, char *path, SceULong64 contentlength) |
| Create a http request. | |
| int | sceHttpCreateRequestWithURL (int connectionid, PspHttpMethod method, char *url, SceULong64 contentlength) |
| Create a http request with url. | |
| int | sceHttpDeleteRequest (int requestid) |
| Delete a http request. | |
| int | sceHttpSendRequest (int requestid, void *data, unsigned int datasize) |
| Send a http request. | |
| int | sceHttpAbortRequest (int requestid) |
| Abort a http request. | |
| int | sceHttpReadData (int requestid, void *data, unsigned int datasize) |
| Read a http request response. | |
| int | sceHttpGetContentLength (int requestid, SceULong64 *contentlength) |
| Get http request response length. | |
| int | sceHttpGetStatusCode (int requestid, int *statuscode) |
| Get http request status code. | |
| int | sceHttpSetResolveTimeOut (int id, unsigned int timeout) |
| Set resolver timeout. | |
| int | sceHttpSetResolveRetry (int id, int count) |
| Set resolver retry. | |
| int | sceHttpSetConnectTimeOut (int id, unsigned int timeout) |
| Set connect timeout. | |
| int | sceHttpSetSendTimeOut (int id, unsigned int timeout) |
| Set send timeout. | |
| int | sceHttpSetRecvTimeOut (int id, unsigned int timeout) |
| Set receive timeout. | |
| int | sceHttpEnableKeepAlive (int id) |
| Enable keep alive. | |
| int | sceHttpDisableKeepAlive (int id) |
| Disable keep alive. | |
| int | sceHttpEnableRedirect (int id) |
| Enable redirect. | |
| int | sceHttpDisableRedirect (int id) |
| Disable redirect. | |
| int | sceHttpEnableCookie (int id) |
| Enable cookie. | |
| int | sceHttpDisableCookie (int id) |
| Disable cookie. | |
| int | sceHttpSaveSystemCookie (void) |
| Save cookie. | |
| int | sceHttpLoadSystemCookie (void) |
| Load cookie. | |
| int | sceHttpAddExtraHeader (int id, char *name, char *value, int unknown1) |
| Add content header. | |
| int | sceHttpDeleteHeader (int id, const char *name) |
| Delete content header. | |
| int | sceHttpsInit (int unknown1, int unknown2, int unknown3, int unknown4) |
| Init the https library. | |
| int | sceHttpsEnd (void) |
| Terminate the https library. | |
| int | sceHttpsLoadDefaultCert (int unknown1, int unknown2) |
| Load default certificate. | |
Variables | |
| typedef | __attribute__ |
| USB device descriptor. | |
| enum PspHttpMethod |
| int sceHttpAbortRequest | ( | int | requestid | ) |
Abort a http request.
| requestid | - ID of the request created by sceHttpCreateRequest or sceHttpCreateRequestWithURL |
| int sceHttpAddExtraHeader | ( | int | id, | |
| char * | name, | |||
| char * | value, | |||
| int | unknown1 | |||
| ) |
Add content header.
| id | - ID of the template, connection or request | |
| name | - Name of the content | |
| value | - Value of the content | |
| unknown1 | - Pass 0 |
| int sceHttpCreateConnection | ( | int | templateid, | |
| char * | host, | |||
| char * | unknown1, | |||
| unsigned short | port, | |||
| int | unknown2 | |||
| ) |
Create a http connection.
| templateid | - ID of the template created by sceHttpCreateTemplate | |
| host | - Host to connect to | |
| unknown1 | - Pass "http" | |
| port | - Port to connect on | |
| unknown2 | - Pass 0 |
| int sceHttpCreateConnectionWithURL | ( | int | templateid, | |
| const char * | url, | |||
| int | unknown1 | |||
| ) |
Create a http connection to a url.
| templateid | - ID of the template created by sceHttpCreateTemplate | |
| url | - url to connect to | |
| unknown1 | - Pass 0 |
| int sceHttpCreateRequest | ( | int | connectionid, | |
| PspHttpMethod | method, | |||
| char * | path, | |||
| SceULong64 | contentlength | |||
| ) |
Create a http request.
| connectionid | - ID of the connection created by sceHttpCreateConnection or sceHttpCreateConnectionWithURL | |
| method | - One of PspHttpMethod | |
| path | - Path to access | |
| contentlength | - Length of the content (POST method only) |
| int sceHttpCreateRequestWithURL | ( | int | connectionid, | |
| PspHttpMethod | method, | |||
| char * | url, | |||
| SceULong64 | contentlength | |||
| ) |
Create a http request with url.
| connectionid | - ID of the connection created by sceHttpCreateConnection or sceHttpCreateConnectionWithURL | |
| method | - One of PspHttpMethod | |
| url | - url to access | |
| contentlength | - Length of the content (POST method only) |
| int sceHttpCreateTemplate | ( | char * | agent, | |
| int | unknown1, | |||
| int | unknown2 | |||
| ) |
Create a http template.
| agent | - User agent | |
| unknown1 | - Pass 1 | |
| unknown2 | - Pass 0 |
| int sceHttpDeleteConnection | ( | int | connectionid | ) |
Delete a http connection.
| connectionid | - ID of the connection created by sceHttpCreateConnection or sceHttpCreateConnectionWithURL |
| int sceHttpDeleteHeader | ( | int | id, | |
| const char * | name | |||
| ) |
Delete content header.
| id | - ID of the template, connection or request | |
| name | - Name of the content |
| int sceHttpDeleteRequest | ( | int | requestid | ) |
Delete a http request.
| requestid | - ID of the request created by sceHttpCreateRequest or sceHttpCreateRequestWithURL |
| int sceHttpDeleteTemplate | ( | int | templateid | ) |
Delete a http template.
| templateid | - ID of the template created by sceHttpCreateTemplate |
| int sceHttpDisableCookie | ( | int | id | ) |
Disable cookie.
| id | - ID of the template or connection |
| int sceHttpDisableKeepAlive | ( | int | id | ) |
Disable keep alive.
| id | - ID of the template or connection |
| int sceHttpDisableRedirect | ( | int | id | ) |
Disable redirect.
| id | - ID of the template or connection |
| int sceHttpEnableCookie | ( | int | id | ) |
Enable cookie.
| id | - ID of the template or connection |
| int sceHttpEnableKeepAlive | ( | int | id | ) |
Enable keep alive.
| id | - ID of the template or connection |
| int sceHttpEnableRedirect | ( | int | id | ) |
Enable redirect.
| id | - ID of the template or connection |
| int sceHttpEnd | ( | void | ) |
Terminate the http library.
| int sceHttpGetContentLength | ( | int | requestid, | |
| SceULong64 * | contentlength | |||
| ) |
Get http request response length.
| requestid | - ID of the request created by sceHttpCreateRequest or sceHttpCreateRequestWithURL | |
| contentlength | - The size of the content |
| int sceHttpGetStatusCode | ( | int | requestid, | |
| int * | statuscode | |||
| ) |
Get http request status code.
| requestid | - ID of the request created by sceHttpCreateRequest or sceHttpCreateRequestWithURL | |
| statuscode | - The status code from the host (200 is ok, 404 is not found etc) |
| int sceHttpInit | ( | unsigned int | unknown1 | ) |
Init the http library.
| unknown1 | - Memory pool size? Pass 20000 |
| int sceHttpLoadSystemCookie | ( | void | ) |
Load cookie.
| int sceHttpReadData | ( | int | requestid, | |
| void * | data, | |||
| unsigned int | datasize | |||
| ) |
Read a http request response.
| requestid | - ID of the request created by sceHttpCreateRequest or sceHttpCreateRequestWithURL | |
| data | - Buffer for the response data to be stored | |
| datasize | - Size of the buffer |
| int sceHttpSaveSystemCookie | ( | void | ) |
Save cookie.
| int sceHttpsEnd | ( | void | ) |
Terminate the https library.
| int sceHttpSendRequest | ( | int | requestid, | |
| void * | data, | |||
| unsigned int | datasize | |||
| ) |
Send a http request.
| requestid | - ID of the request created by sceHttpCreateRequest or sceHttpCreateRequestWithURL | |
| data | - For POST methods specify a pointer to the post data, otherwise pass NULL | |
| datasize | - For POST methods specify the size of the post data, otherwise pass 0 |
| int sceHttpSetConnectTimeOut | ( | int | id, | |
| unsigned int | timeout | |||
| ) |
Set connect timeout.
| id | - ID of the template, connection or request | |
| timeout | - Timeout value in microseconds |
| int sceHttpSetRecvTimeOut | ( | int | id, | |
| unsigned int | timeout | |||
| ) |
Set receive timeout.
| id | - ID of the template or connection | |
| timeout | - Timeout value in microseconds |
| int sceHttpSetResolveRetry | ( | int | id, | |
| int | count | |||
| ) |
Set resolver retry.
| id | - ID of the template or connection | |
| count | - Number of retries |
| int sceHttpSetResolveTimeOut | ( | int | id, | |
| unsigned int | timeout | |||
| ) |
Set resolver timeout.
| id | - ID of the template or connection | |
| timeout | - Timeout value in microseconds |
| int sceHttpSetSendTimeOut | ( | int | id, | |
| unsigned int | timeout | |||
| ) |
Set send timeout.
| id | - ID of the template, connection or request | |
| timeout | - Timeout value in microseconds |
| int sceHttpsInit | ( | int | unknown1, | |
| int | unknown2, | |||
| int | unknown3, | |||
| int | unknown4 | |||
| ) |
Init the https library.
| unknown1 | - Pass 0 | |
| unknown2 | - Pass 0 | |
| unknown3 | - Pass 0 | |
| unknown4 | - Pass 0 |
| int sceHttpsLoadDefaultCert | ( | int | unknown1, | |
| int | unknown2 | |||
| ) |
Load default certificate.
| unknown1 | - Pass 0 | |
| unknown2 | - Pass 0 |
struct SfoEntry __attribute__ [new] |
USB device descriptor.
USB driver structure used by sceUsbbdRegisterDriver and sceUsbbdUnregisterDriver.
USB EP0 Device Request.
Padded data structure, padding is required otherwise the USB hardware crashes.
USB endpoint descriptor.
USB Interface descriptor.
USB configuration descriptor.
1.7.1