|
VLC
2.1.0-git
|

Data Structures | |
| struct | sap_session_t |
| struct | sap_address_t |
| struct | sap_handler_t |
Macros | |
| #define | IPPORT_SAP 9875 |
| #define | SAP_MAX_BUFFER 65534 |
| #define | MIN_INTERVAL 2 |
| #define | MAX_INTERVAL 300 |
Typedefs | |
| typedef struct sap_session_t | sap_session_t |
| typedef struct sap_address_t | sap_address_t |
Functions | |
| static void * | RunThread (void *self) |
| main SAP handler thread | |
| sap_handler_t * | SAP_Create (vlc_object_t *p_announce) |
| Create the SAP handler. | |
| void | SAP_Destroy (sap_handler_t *p_sap) |
| static sap_address_t * | AddressCreate (vlc_object_t *obj, const char *group) |
| static void | AddressDestroy (sap_address_t *addr) |
| int | SAP_Add (sap_handler_t *p_sap, session_descriptor_t *p_session) |
| Add a SAP announce. | |
| void | SAP_Del (sap_handler_t *p_sap, const session_descriptor_t *p_session) |
| Remove a SAP Announce. | |
| #define IPPORT_SAP 9875 |
Referenced by AddressCreate().
| #define MAX_INTERVAL 300 |
| #define MIN_INTERVAL 2 |
| #define SAP_MAX_BUFFER 65534 |
| typedef struct sap_address_t sap_address_t |
| typedef struct sap_session_t sap_session_t |
|
static |
References sap_address_t::fd, sap_address_t::first, sap_address_t::group, sap_address_t::interval, IPPORT_SAP, sap_address_t::lock, msg_Err, net_Close, net_ConnectUDP(), sap_address_t::orig, sap_address_t::origlen, RunThread(), sap_address_t::session_count, strlcpy(), sap_address_t::thread, var_CreateGetInteger, vlc_clone(), vlc_cond_init(), vlc_mutex_init(), VLC_THREAD_PRIORITY_LOW, and sap_address_t::wait.
Referenced by SAP_Add().
|
static |
References sap_address_t::fd, sap_address_t::first, sap_address_t::lock, net_Close, sap_address_t::thread, vlc_cancel(), vlc_cond_destroy(), vlc_join(), vlc_mutex_destroy(), and sap_address_t::wait.
Referenced by SAP_Del().
|
static |
main SAP handler thread
| p_this | the SAP Handler object |
References CLOCK_FREQ, sap_session_t::data, sap_address_t::fd, sap_address_t::first, sap_address_t::interval, sap_session_t::length, sap_address_t::lock, mdate(), mutex_cleanup_push, sap_session_t::next, sap_address_t::session_count, vlc_cleanup_pop, vlc_cond_timedwait(), vlc_cond_wait(), vlc_mutex_lock(), and sap_address_t::wait.
Referenced by AddressCreate().
| int SAP_Add | ( | sap_handler_t * | p_sap, |
| session_descriptor_t * | p_session | ||
| ) |
Add a SAP announce.
< Unspecified error
< Unspecified error
< Unspecified error
< Unspecified error
< Unspecified error
< Unspecified error
< No error
References session_descriptor_t::addr, AddressCreate(), session_descriptor_t::addrlen, sap_session_t::data, sap_address_t::first, sap_handler_t::first, gai_strerror(), sap_address_t::group, sap_session_t::length, sap_address_t::lock, sap_handler_t::lock, mdate(), msg_Dbg, msg_Err, sap_session_t::next, sap_address_t::next, NI_MAXNUMERICHOST, session_descriptor_t::orig, sap_address_t::orig, session_descriptor_t::origlen, sap_address_t::origlen, sap_session_t::p_sd, session_descriptor_t::psz_sdp, sap_address_t::session_count, vlc_cond_signal(), VLC_EGENERIC, vlc_getnameinfo(), vlc_mutex_lock(), vlc_mutex_unlock(), VLC_OBJECT, VLC_SUCCESS, and sap_address_t::wait.
Referenced by sout_AnnounceRegisterSDP().
|
read |
Create the SAP handler.
| p_announce | a VLC object |
References sap_handler_t::first, sap_handler_t::lock, vlc_custom_create, and vlc_mutex_init().
Referenced by sout_AnnounceRegisterSDP().
| void SAP_Del | ( | sap_handler_t * | p_sap, |
| const session_descriptor_t * | p_session | ||
| ) |
Remove a SAP Announce.
References AddressDestroy(), sap_address_t::first, sap_handler_t::first, sap_address_t::lock, sap_handler_t::lock, sap_session_t::next, sap_address_t::next, sap_session_t::p_sd, sap_address_t::session_count, vlc_cond_signal(), vlc_mutex_lock(), vlc_mutex_unlock(), and sap_address_t::wait.
Referenced by sout_AnnounceUnRegister().
| void SAP_Destroy | ( | sap_handler_t * | p_sap | ) |
References sap_handler_t::first, sap_handler_t::lock, vlc_mutex_destroy(), and vlc_object_release.
1.8.1.2