#include <gpac/tools.h>
#include <gpac/module.h>
Classes | |
| struct | GF_NETIO_Parameter |
Typedefs | |
| typedef struct __gf_download_manager | GF_DownloadManager |
| typedef struct __gf_download_session | GF_DownloadSession |
| typedef Bool(* | gf_dm_get_usr_pass )(void *usr_cbk, const char *site_url, char *usr_name, char *password) |
| callback function for authentication | |
| typedef void(* | gf_dm_user_io )(void *usr_cbk, GF_NETIO_Parameter *parameter) |
| callback function for data reception and state signaling | |
Enumerations | |
| enum | { GF_NETIO_SETUP = 0, GF_NETIO_CONNECTED, GF_NETIO_GET_METHOD, GF_NETIO_GET_HEADER, GF_NETIO_GET_CONTENT, GF_NETIO_WAIT_FOR_REPLY, GF_NETIO_PARSE_HEADER, GF_NETIO_PARSE_REPLY, GF_NETIO_DATA_EXCHANGE, GF_NETIO_DATA_TRANSFERED, GF_NETIO_DISCONNECTED, GF_NETIO_STATE_ERROR } |
| enum | { GF_NETIO_SESSION_NOT_THREADED = 1, GF_NETIO_SESSION_NOT_CACHED = 1<<1 } |
Functions | |
| GF_DownloadManager * | gf_dm_new (GF_Config *cfg) |
| download manager constructor | |
| void | gf_dm_del (GF_DownloadManager *dm) |
| void | gf_dm_set_auth_callback (GF_DownloadManager *dm, gf_dm_get_usr_pass get_pass, void *usr_cbk) |
| password retrieval assignment | |
| GF_DownloadSession * | gf_dm_sess_new (GF_DownloadManager *dm, char *url, u32 dl_flags, gf_dm_user_io user_io, void *usr_cbk, GF_Err *error) |
| download session constructor | |
| void | gf_dm_sess_del (GF_DownloadSession *sess) |
| void | gf_dm_sess_abort (GF_DownloadSession *sess) |
| aborts downloading | |
| void | gf_dm_sess_set_private (GF_DownloadSession *sess, void *private_data) |
| sets private data | |
| void * | gf_dm_sess_get_private (GF_DownloadSession *sess) |
| gets private data | |
| GF_Err | gf_dm_sess_last_error (GF_DownloadSession *sess) |
| gets last session error | |
| GF_Err | gf_dm_sess_fetch_data (GF_DownloadSession *sess, char *buffer, u32 buffer_size, u32 *read_size) |
| fetches data on session | |
| const char * | gf_dm_sess_mime_type (GF_DownloadSession *sess) |
| get mime type | |
| const char * | gf_dm_sess_get_cache_name (GF_DownloadSession *sess) |
| get cache file name | |
| GF_Err | gf_dm_sess_get_stats (GF_DownloadSession *sess, const char **server, const char **path, u32 *total_size, u32 *bytes_done, u32 *bytes_per_sec, u32 *net_status) |
| get statistics | |