GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
network_service.c File Reference
+ Include dependency graph for network_service.c:

Macros

#define GET_TERM()   GF_Terminal *term = (GF_Terminal *) user_priv; if (!term) return;
 

Functions

static GF_Channel * gf_term_get_channel (GF_ClientService *service, LPNETCHANNEL ns)
 
static void term_on_message (void *user_priv, GF_ClientService *service, GF_Err error, const char *message)
 
static void term_on_connect (void *user_priv, GF_ClientService *service, LPNETCHANNEL netch, GF_Err err)
 
static void term_on_disconnect (void *user_priv, GF_ClientService *service, LPNETCHANNEL netch, GF_Err response)
 
static void term_on_slp_received (void *user_priv, GF_ClientService *service, LPNETCHANNEL netch, char *data, u32 data_size, GF_SLHeader *hdr, GF_Err reception_status)
 
static Bool is_same_od (GF_ObjectDescriptor *od1, GF_ObjectDescriptor *od2)
 
static void term_on_media_add (void *user_priv, GF_ClientService *service, GF_Descriptor *media_desc, Bool no_scene_check)
 
static void term_on_command (void *user_priv, GF_ClientService *service, GF_NetworkCommand *com, GF_Err response)
 
Bool net_check_interface (GF_InputService *ifce)
 
static char * get_mime_type (GF_Terminal *term, const char *url, GF_Err *ret_code, GF_DownloadSession **the_session)
 
static Bool check_extension (const char *szExtList, char *szExt)
 
static GF_InputServicegf_term_can_handle_service (GF_Terminal *term, const char *url, const char *parent_url, Bool no_mime_check, char **out_url, GF_Err *ret_code, GF_DownloadSession **the_session)
 
GF_ClientService * gf_term_service_new (GF_Terminal *term, struct _od_manager *owner, const char *url, const char *parent_url, GF_Err *ret_code)
 
Bool gf_term_is_supported_url (GF_Terminal *term, const char *fileName, Bool use_parent_url, Bool no_mime_check)
 
Bool gf_term_service_can_handle_url (GF_ClientService *ns, char *url)
 
GF_Err gf_term_service_command (GF_ClientService *ns, GF_NetworkCommand *com)
 
GF_Err gf_term_channel_get_sl_packet (GF_ClientService *ns, LPNETCHANNEL channel, char **out_data_ptr, u32 *out_data_size, GF_SLHeader *out_sl_hdr, Bool *sl_compressed, GF_Err *out_reception_status, Bool *is_new_data)
 
GF_Err gf_term_channel_release_sl_packet (GF_ClientService *ns, LPNETCHANNEL channel)
 
void gf_term_on_message (GF_ClientService *service, GF_Err error, const char *message)
 
void gf_term_on_connect (GF_ClientService *service, LPNETCHANNEL ns, GF_Err response)
 
void gf_term_on_disconnect (GF_ClientService *service, LPNETCHANNEL ns, GF_Err response)
 
void gf_term_on_command (GF_ClientService *service, GF_NetworkCommand *com, GF_Err response)
 
Bool gf_term_on_service_event (GF_ClientService *service, GF_Event *service_event)
 
void gf_term_on_sl_packet (GF_ClientService *service, LPNETCHANNEL ns, char *data, u32 data_size, GF_SLHeader *hdr, GF_Err reception_status)
 
void gf_term_add_media (GF_ClientService *service, GF_Descriptor *media_desc, Bool no_scene_check)
 
const char * gf_term_get_service_url (GF_ClientService *service)
 
void gf_term_delete_net_service (GF_ClientService *ns)
 
GF_InputServicegf_term_get_service_interface (GF_ClientService *serv)
 
GF_DownloadSession * gf_term_download_new (GF_ClientService *service, const char *url, u32 flags, gf_dm_user_io user_io, void *cbk)
 
void gf_term_download_del (GF_DownloadSession *sess)
 
void gf_term_download_update_stats (GF_DownloadSession *sess)
 
void gf_term_service_del (GF_ClientService *ns)
 
void gf_term_register_mime_type (const GF_InputService *ifce, const char *mimeType, const char *extList, const char *description)
 
Bool gf_term_check_extension (GF_InputService *ifce, const char *mimeType, const char *extList, const char *description, const char *fileExt)
 
GF_Err gf_term_service_cache_load (GF_ClientService *ns)
 
GF_Err gf_term_service_cache_close (GF_ClientService *ns, Bool no_save)
 

Macro Definition Documentation

#define GET_TERM ( )    GF_Terminal *term = (GF_Terminal *) user_priv; if (!term) return;

Function Documentation

static GF_Channel* gf_term_get_channel ( GF_ClientService *  service,
LPNETCHANNEL  ns 
)
static

+ Here is the caller graph for this function:

static void term_on_message ( void *  user_priv,
GF_ClientService *  service,
GF_Err  error,
const char *  message 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void term_on_connect ( void *  user_priv,
GF_ClientService *  service,
LPNETCHANNEL  netch,
GF_Err  err 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void term_on_disconnect ( void *  user_priv,
GF_ClientService *  service,
LPNETCHANNEL  netch,
GF_Err  response 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void term_on_slp_received ( void *  user_priv,
GF_ClientService *  service,
LPNETCHANNEL  netch,
char *  data,
u32  data_size,
GF_SLHeader hdr,
GF_Err  reception_status 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool is_same_od ( GF_ObjectDescriptor od1,
GF_ObjectDescriptor od2 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void term_on_media_add ( void *  user_priv,
GF_ClientService *  service,
GF_Descriptor media_desc,
Bool  no_scene_check 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void term_on_command ( void *  user_priv,
GF_ClientService *  service,
GF_NetworkCommand com,
GF_Err  response 
)
static

ch->MaxBuffer ||

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool net_check_interface ( GF_InputService ifce)

+ Here is the caller graph for this function:

static char* get_mime_type ( GF_Terminal *  term,
const char *  url,
GF_Err ret_code,
GF_DownloadSession **  the_session 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool check_extension ( const char *  szExtList,
char *  szExt 
)
static

+ Here is the caller graph for this function:

static GF_InputService* gf_term_can_handle_service ( GF_Terminal *  term,
const char *  url,
const char *  parent_url,
Bool  no_mime_check,
char **  out_url,
GF_Err ret_code,
GF_DownloadSession **  the_session 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_ClientService* gf_term_service_new ( GF_Terminal *  term,
struct _od_manager owner,
const char *  url,
const char *  parent_url,
GF_Err ret_code 
)

+ Here is the call graph for this function:

Bool gf_term_is_supported_url ( GF_Terminal *  term,
const char *  fileName,
Bool  use_parent_url,
Bool  no_mime_check 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool gf_term_service_can_handle_url ( GF_ClientService *  ns,
char *  url 
)

+ Here is the caller graph for this function:

GF_Err gf_term_service_command ( GF_ClientService *  ns,
GF_NetworkCommand com 
)

+ Here is the caller graph for this function:

GF_Err gf_term_channel_get_sl_packet ( GF_ClientService *  ns,
LPNETCHANNEL  channel,
char **  out_data_ptr,
u32 out_data_size,
GF_SLHeader out_sl_hdr,
Bool sl_compressed,
GF_Err out_reception_status,
Bool is_new_data 
)

+ Here is the caller graph for this function:

GF_Err gf_term_channel_release_sl_packet ( GF_ClientService *  ns,
LPNETCHANNEL  channel 
)

+ Here is the caller graph for this function:

void gf_term_on_message ( GF_ClientService *  service,
GF_Err  error,
const char *  message 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_on_connect ( GF_ClientService *  service,
LPNETCHANNEL  ns,
GF_Err  response 
)

+ Here is the call graph for this function:

void gf_term_on_disconnect ( GF_ClientService *  service,
LPNETCHANNEL  ns,
GF_Err  response 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_on_command ( GF_ClientService *  service,
GF_NetworkCommand com,
GF_Err  response 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool gf_term_on_service_event ( GF_ClientService *  service,
GF_Event service_event 
)

+ Here is the caller graph for this function:

void gf_term_on_sl_packet ( GF_ClientService *  service,
LPNETCHANNEL  ns,
char *  data,
u32  data_size,
GF_SLHeader hdr,
GF_Err  reception_status 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_add_media ( GF_ClientService *  service,
GF_Descriptor media_desc,
Bool  no_scene_check 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const char* gf_term_get_service_url ( GF_ClientService *  service)

+ Here is the caller graph for this function:

void gf_term_delete_net_service ( GF_ClientService *  ns)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_InputService* gf_term_get_service_interface ( GF_ClientService *  serv)

+ Here is the caller graph for this function:

GF_DownloadSession* gf_term_download_new ( GF_ClientService *  service,
const char *  url,
u32  flags,
gf_dm_user_io  user_io,
void *  cbk 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_download_del ( GF_DownloadSession *  sess)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_download_update_stats ( GF_DownloadSession *  sess)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_service_del ( GF_ClientService *  ns)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_term_register_mime_type ( const GF_InputService ifce,
const char *  mimeType,
const char *  extList,
const char *  description 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool gf_term_check_extension ( GF_InputService ifce,
const char *  mimeType,
const char *  extList,
const char *  description,
const char *  fileExt 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_term_service_cache_load ( GF_ClientService *  ns)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_term_service_cache_close ( GF_ClientService *  ns,
Bool  no_save 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: