libgpac
Documentation of the core library of GPAC
Loading...
Searching...
No Matches
downloader_exp.h File Reference
#include <gpac/download.h>
+ Include dependency graph for downloader_exp.h:
+ This graph shows which files directly or indirectly include this file:

Enumerations

enum  GF_HTTPSessionType { GF_SESS_TYPE_HTTP =0 , GF_SESS_TYPE_HTTP2 , GF_SESS_TYPE_HTTP3 }
 

Functions

GF_DownloadSession * gf_dm_sess_new_server (GF_DownloadManager *dm, GF_Socket *server, void *ssl_ctx, gf_dm_user_io user_io, void *usr_cbk, Bool async, GF_Err *e)
 
GF_DownloadSession * gf_dm_sess_new_subsession (GF_DownloadSession *sess, s64 stream_id, void *usr_cbk, GF_Err *e)
 
u32 gf_dm_sess_subsession_count (GF_DownloadSession *)
 
GF_Socket * gf_dm_sess_get_socket (GF_DownloadSession *)
 
void gf_dm_sess_clear_headers (GF_DownloadSession *sess)
 
void gf_dm_sess_set_header (GF_DownloadSession *sess, const char *name, const char *value)
 
void gf_dm_sess_set_header_ex (GF_DownloadSession *sess, const char *name, const char *value, Bool allow_overwrite)
 
GF_Err gf_dm_sess_flush_async (GF_DownloadSession *sess, Bool no_select)
 
u32 gf_dm_sess_async_pending (GF_DownloadSession *sess)
 
GF_Err gf_dm_sess_send_reply (GF_DownloadSession *sess, u32 reply_code, const char *response_body, u32 body_len, Bool no_body)
 
void gf_dm_sess_server_reset (GF_DownloadSession *sess)
 
void gf_dm_sess_set_timeout (GF_DownloadSession *sess, u32 timeout)
 
GF_HTTPSessionType gf_dm_sess_is_hmux (GF_DownloadSession *sess)
 
void gf_dm_sess_close_hmux (GF_DownloadSession *sess)
 
void gf_dm_sess_set_sock_group (GF_DownloadSession *sess, GF_SockGroup *sg)
 
GF_Err gf_dm_sess_read (GF_DownloadSession *sess, char *data, u32 data_size, u32 *out_read)
 
GF_Err gf_dm_sess_send (GF_DownloadSession *sess, u8 *data, u32 size)
 
GF_Err gf_dm_sess_flush_close (GF_DownloadSession *sess)
 
Bool gf_dm_sess_use_tls (GF_DownloadSession *sess)
 

Enumeration Type Documentation

◆ GF_HTTPSessionType

Enumerator
GF_SESS_TYPE_HTTP 
GF_SESS_TYPE_HTTP2 
GF_SESS_TYPE_HTTP3 

Function Documentation

◆ gf_dm_sess_new_server()

GF_DownloadSession * gf_dm_sess_new_server ( GF_DownloadManager *  dm,
GF_Socket *  server,
void *  ssl_ctx,
gf_dm_user_io  user_io,
void *  usr_cbk,
Bool  async,
GF_Err *  e 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_dm_sess_new_subsession()

GF_DownloadSession * gf_dm_sess_new_subsession ( GF_DownloadSession *  sess,
s64  stream_id,
void *  usr_cbk,
GF_Err *  e 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_dm_sess_subsession_count()

u32 gf_dm_sess_subsession_count ( GF_DownloadSession *  sess)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_dm_sess_get_socket()

GF_Socket * gf_dm_sess_get_socket ( GF_DownloadSession *  sess)
+ Here is the caller graph for this function:

◆ gf_dm_sess_clear_headers()

void gf_dm_sess_clear_headers ( GF_DownloadSession *  sess)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_dm_sess_set_header()

void gf_dm_sess_set_header ( GF_DownloadSession *  sess,
const char *  name,
const char *  value 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_dm_sess_set_header_ex()

void gf_dm_sess_set_header_ex ( GF_DownloadSession *  sess,
const char *  name,
const char *  value,
Bool  allow_overwrite 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_dm_sess_flush_async()

GF_Err gf_dm_sess_flush_async ( GF_DownloadSession *  sess,
Bool  no_select 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_dm_sess_async_pending()

u32 gf_dm_sess_async_pending ( GF_DownloadSession *  sess)
+ Here is the caller graph for this function:

◆ gf_dm_sess_send_reply()

GF_Err gf_dm_sess_send_reply ( GF_DownloadSession *  sess,
u32  reply_code,
const char *  response_body,
u32  body_len,
Bool  no_body 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_dm_sess_server_reset()

void gf_dm_sess_server_reset ( GF_DownloadSession *  sess)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_dm_sess_set_timeout()

void gf_dm_sess_set_timeout ( GF_DownloadSession *  sess,
u32  timeout 
)
+ Here is the caller graph for this function:

◆ gf_dm_sess_is_hmux()

GF_HTTPSessionType gf_dm_sess_is_hmux ( GF_DownloadSession *  sess)
+ Here is the caller graph for this function:

◆ gf_dm_sess_close_hmux()

void gf_dm_sess_close_hmux ( GF_DownloadSession *  sess)
+ Here is the caller graph for this function:

◆ gf_dm_sess_set_sock_group()

void gf_dm_sess_set_sock_group ( GF_DownloadSession *  sess,
GF_SockGroup *  sg 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_dm_sess_read()

GF_Err gf_dm_sess_read ( GF_DownloadSession *  sess,
char *  data,
u32  data_size,
u32 *  out_read 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_dm_sess_send()

GF_Err gf_dm_sess_send ( GF_DownloadSession *  sess,
u8 *  data,
u32  size 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_dm_sess_flush_close()

GF_Err gf_dm_sess_flush_close ( GF_DownloadSession *  sess)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_dm_sess_use_tls()

Bool gf_dm_sess_use_tls ( GF_DownloadSession *  sess)