![]() |
libgpac
Documentation of the core library of GPAC
|
#include <gpac/internal/media_dev.h>#include <gpac/constants.h>#include <gpac/maths.h>#include <gpac/filters.h>#include <gpac/ietf.h>#include <gpac/config_file.h>#include <gpac/base_coding.h>#include <gpac/network.h>#include <gpac/mpd.h>#include "../utils/downloader.h"
Include dependency graph for out_http.c:Data Structures | |
| struct | HTTP_DIRInfo |
| struct | GF_HTTPOutCtx |
| struct | GF_HTTPOutInput |
| struct | HTTByteRange |
| struct | GF_HTTPOutSession |
| struct | GF_HTTPFileIO |
| struct | HTTP_DirEnum |
Macros | |
| #define | OFFS(_n) #_n, offsetof(GF_HTTPOutCtx, _n) |
Typedefs | |
| typedef u32 | GF_HTTPOutFilterOperationMode |
| typedef u32 | GF_HTTPOutCORSMode |
Enumerations | |
| enum | GF_HTTPOutFilterOperationMode_t { MODE_DEFAULT =0 , MODE_PUSH , MODE_SOURCE } |
| enum | GF_HTTPOutCORSMode_t { CORS_AUTO =0 , CORS_OFF , CORS_ON } |
| enum | { SKIP_RES_NO =0 , SKIP_RES_FILE , SKIP_RES_PUSH } |
| enum | SessionEndType { SESS_END_OK =0 , SESS_END_CANCEL , SESS_END_CLOSE } |
| enum | RangeState { RANGE_OK = 0 , RANGE_BAD_FORMAT , RANGE_INVALID_FORMAT , RANGE_NOT_ALLOWED } |
| enum | { HTTP_PUT_HEADER_ENCODING =0 , HTTP_PUT_HEADER_MIME , HTTP_PUT_HEADER_RANGE , HTTP_PUT_HEADER_DONE } |
Functions | |
| static void | httpio_del (GF_HTTPFileIO *hio) |
| static GF_Err | httpio_seek (GF_FileIO *fileio, u64 offset, s32 whence) |
| static u32 | httpio_read (GF_FileIO *fileio, u8 *buffer, u32 bytes) |
| static u32 | httpio_write (GF_FileIO *fileio, u8 *buffer, u32 bytes) |
| static s64 | httpio_tell (GF_FileIO *fileio) |
| static Bool | httpio_eof (GF_FileIO *fileio) |
| static GF_FileIO * | httpio_open (GF_FileIO *fileio_ref, const char *url, const char *mode, GF_Err *out_err) |
| static void | httpout_close_session (GF_HTTPOutSession *sess, GF_Err code) |
| static void | log_request_done (GF_HTTPOutSession *sess) |
| static void | httpout_mark_session_done (GF_HTTPOutSession *sess) |
| static Bool | httpout_sess_flush_close (GF_HTTPOutSession *sess, Bool close_session, Bool from_cbk) |
| void | httpout_format_date (u64 time, char szDate[200], Bool for_listing) |
| static Bool | httpout_dir_file_enum (void *cbck, char *item_name, char *item_path, GF_FileEnumInfo *file_info, Bool is_dir) |
| static Bool | httpout_dir_enum (void *cbck, char *item_name, char *item_path, GF_FileEnumInfo *file_info) |
| static Bool | httpout_file_enum (void *cbck, char *item_name, char *item_path, GF_FileEnumInfo *file_info) |
| static char * | httpout_create_listing (GF_HTTPOutCtx *ctx, char *full_path, HTTP_DIRInfo *di) |
| static void | httpout_set_local_path (GF_HTTPOutCtx *ctx, GF_HTTPOutInput *in) |
| static Bool | httpout_sess_parse_range (GF_HTTPOutSession *sess, char *range, char **response_body) |
| static u32 | httpout_do_log (GF_HTTPOutSession *sess, u32 method) |
| static const char * | get_method_name (u32 method) |
| GF_Err | httpout_new_subsession (GF_HTTPOutSession *sess, s64 stream_id) |
| static u32 | httpout_auth_check (HTTP_DIRInfo *di, const char *auth_header, Bool for_write) |
| static void | httpout_push_headers (GF_HTTPOutSession *sess) |
| static void | httpout_sess_io (void *usr_cbk, GF_NETIO_Parameter *parameter) |
| static void | httpout_in_io_ex (void *usr_cbk, GF_NETIO_Parameter *parameter, Bool is_llhas) |
| static void | httpout_in_io (void *usr_cbk, GF_NETIO_Parameter *parameter) |
| static void | httpout_in_io_llhas (void *usr_cbk, GF_NETIO_Parameter *parameter) |
| static GF_Err | httpout_configure_pid (GF_Filter *filter, GF_FilterPid *pid, Bool is_remove) |
| static void | httpout_check_connection (GF_HTTPOutSession *sess) |
| static Bool | httpout_accept_connection (GF_HTTPOutCtx *ctx, const char *peer_address, u32 peer_port) |
| static void | httpout_check_new_session (GF_HTTPOutCtx *ctx, GF_Socket *serversock) |
| static GF_Err | httpout_initialize (GF_Filter *filter) |
| static void | httpout_del_session (GF_HTTPOutSession *s) |
| static void | httpout_check_mem_path (GF_HTTPOutSession *sess, GF_HTTPOutInput *in) |
| static void | httpout_close_llhas_part (GF_HTTPOutCtx *ctx, GF_HTTPOutInput *in, Bool final_flush) |
| static void | httpout_finalize (GF_Filter *filter) |
| static GF_Err | httpout_sess_data_upload (GF_HTTPOutSession *sess, const u8 *data, u32 size) |
| static void | httpout_process_session (GF_Filter *filter, GF_HTTPOutCtx *ctx, GF_HTTPOutSession *sess) |
| static Bool | httpout_close_upload (GF_HTTPOutCtx *ctx, GF_HTTPOutInput *in, Bool for_llhas) |
| static Bool | httpout_open_input (GF_HTTPOutCtx *ctx, GF_HTTPOutInput *in, const char *name, Bool is_delete, Bool is_static, Bool is_fake, Bool check_no_open) |
| static void | httpout_input_in_error (GF_HTTPOutInput *in, GF_Err e) |
| static void | httpout_close_input_llhas (GF_HTTPOutCtx *ctx, GF_HTTPOutInput *in) |
| static void | httpout_close_input (GF_HTTPOutCtx *ctx, GF_HTTPOutInput *in) |
| static Bool | httpout_open_input_llhas (GF_HTTPOutCtx *ctx, GF_HTTPOutInput *in, char *dst) |
| u32 | httpout_write_input (GF_HTTPOutCtx *ctx, GF_HTTPOutInput *in, const u8 *pck_data, u32 pck_size, Bool file_start, Bool no_llhas) |
| static Bool | httpout_input_write_ready (GF_HTTPOutCtx *ctx, GF_HTTPOutInput *in) |
| static void | httpin_send_seg_info (GF_HTTPOutInput *in) |
| static void | httpout_prune_files (GF_HTTPOutCtx *ctx, GF_HTTPOutInput *in) |
| static void | httpout_input_drop (GF_HTTPOutInput *in, GF_FilterPacket *pck) |
| static void | httpout_process_inputs (GF_HTTPOutCtx *ctx) |
| static GF_Err | httpout_process (GF_Filter *filter) |
| static Bool | httpout_process_event (GF_Filter *filter, const GF_FilterEvent *evt) |
| static GF_FilterProbeScore | httpout_probe_url (const char *url, const char *mime) |
| static Bool | httpout_use_alias (GF_Filter *filter, const char *url, const char *mime) |
| const GF_FilterRegister * | httpout_register (GF_FilterSession *session) |
| GF_EXPORT GF_Err | gf_filter_bind_httpout_callbacks (GF_Filter *filter, void *udta, s32(*on_request)(void *udta, GF_HTTPOutSession *session, const char *method, const char *url, u32 auth_code, u32 nb_hdrs, const char **hdrs)) |
| GF_EXPORT GF_Err | gf_httpout_send_request (GF_HTTPOutSession *sess, void *udta, u32 reply, char *body_or_file, u32 nb_headers, const char **headers, u32(*throttle)(void *udta, u64 done, u64 total), s32(*read)(void *udta, u8 *buffer, u32 buffer_size), u32(*write)(void *udta, const u8 *buffer, u32 buffer_size), void(*close)(void *udta, GF_Err reason)) |
Variables | |
| static const GF_FilterCapability | HTTPOutCaps [] |
| static const GF_FilterArgs | HTTPOutArgs [] |
| GF_FilterRegister | HTTPOutRegister |
| struct HTTP_DIRInfo |
| struct GF_HTTPOutInput |
Collaboration diagram for GF_HTTPOutInput:| Data Fields | ||
|---|---|---|
| GF_HTTPOutCtx * | ctx | |
| GF_FilterPid * | ipid | |
| char * | path | |
| Bool | dash_mode | |
| char * | mime | |
| u32 | nb_dest | |
| Bool | hold | |
| Bool | write_not_ready | |
| u32 | file_size | |
| u32 | llhas_mode | |
| Bool | is_open | |
| Bool | done | |
| Bool | is_delete | |
| Bool | patch_blocks | |
| GF_List * | file_deletes | |
| GF_DownloadSession * | upload | |
| GF_Socket * | upload_sock | |
| GF_HTTPSessionType | http_type | |
| Bool | use_cte | |
| Bool | blockio | |
| u32 | cur_header | |
| u64 | offset_at_seg_start | |
| u64 | nb_write | |
| u64 | write_start_range | |
| u64 | write_end_range | |
| char | range_hdr[100] | |
| Bool | seg_info_sent | |
| GF_FilterPacket * | no_cte_cache | |
| GF_FilterPacket * | no_cte_llhas_cache | |
| u32 | no_cte_cache_size | |
| u32 | no_cte_llhas_cache_size | |
| Bool | no_cte_flush_pending | |
| char * | local_path | |
| FILE * | resource | |
| u32 | skip_resource | |
| FILE * | llhas_part | |
| char * | llhas_part_path | |
| char * | llhas_part_local_path | |
| char * | llhas_template | |
| u8 * | tunein_data | |
| u32 | tunein_data_size | |
| Bool | force_dst_name | |
| Bool | in_error | |
| u32 | clock_first_error | |
| u32 | max_segs | |
| GF_List * | past_files | |
| GF_List * | mem_files | |
| Bool | is_manifest | |
| GF_DownloadSession * | llhas_upload | |
| u32 | llhas_cur_header | |
| Bool | llhas_is_open | |
| char * | llhas_url | |
| Bool | flush_close | |
| Bool | flush_close_llhas | |
| Bool | flush_open | |
| Bool | flush_llhas_open | |
| struct GF_HTTPFileIO |
| struct HTTP_DirEnum |
| #define OFFS | ( | _n | ) | #_n, offsetof(GF_HTTPOutCtx, _n) |
| typedef u32 GF_HTTPOutFilterOperationMode |
| typedef u32 GF_HTTPOutCORSMode |
| enum GF_HTTPOutCORSMode_t |
| enum SessionEndType |
| enum RangeState |
| anonymous enum |
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
Here is the call graph for this function:
Here is the caller graph for this function:
Here is the call graph for this function:
Here is the caller graph for this function:
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
Here is the caller graph for this function:
|
static |
Here is the caller graph for this function:
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:| u32 httpout_write_input | ( | GF_HTTPOutCtx * | ctx, |
| GF_HTTPOutInput * | in, | ||
| const u8 * | pck_data, | ||
| u32 | pck_size, | ||
| Bool | file_start, | ||
| Bool | no_llhas | ||
| ) |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Here is the call graph for this function:
|
static |
Here is the call graph for this function:
|
static |
|
static |
Here is the call graph for this function:| const GF_FilterRegister * httpout_register | ( | GF_FilterSession * | session | ) |
Here is the call graph for this function:| GF_EXPORT GF_Err gf_filter_bind_httpout_callbacks | ( | GF_Filter * | filter, |
| void * | udta, | ||
| s32(*)(void *udta, GF_HTTPOutSession *session, const char *method, const char *url, u32 auth_code, u32 nb_hdrs, const char **hdrs) | on_request | ||
| ) |
Here is the call graph for this function:| GF_EXPORT GF_Err gf_httpout_send_request | ( | GF_HTTPOutSession * | sess, |
| void * | udta, | ||
| u32 | reply, | ||
| char * | body_or_file, | ||
| u32 | nb_headers, | ||
| const char ** | headers, | ||
| u32(*)(void *udta, u64 done, u64 total) | throttle, | ||
| s32(*)(void *udta, u8 *buffer, u32 buffer_size) | read, | ||
| u32(*)(void *udta, const u8 *buffer, u32 buffer_size) | write, | ||
| void(*)(void *udta, GF_Err reason) | close | ||
| ) |
Here is the call graph for this function:
|
static |
|
static |
| GF_FilterRegister HTTPOutRegister |