VLC  2.1.0-git
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
sap.c File Reference
Include dependency graph for sap.c:

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_tSAP_Create (vlc_object_t *p_announce)
 Create the SAP handler.
void SAP_Destroy (sap_handler_t *p_sap)
static sap_address_tAddressCreate (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.

Macro Definition Documentation

#define IPPORT_SAP   9875

Referenced by AddressCreate().

#define MAX_INTERVAL   300
#define MIN_INTERVAL   2
#define SAP_MAX_BUFFER   65534

Typedef Documentation

typedef struct sap_address_t sap_address_t
typedef struct sap_session_t sap_session_t

Function Documentation

static sap_address_t* AddressCreate ( vlc_object_t obj,
const char *  group 
)
static
static void AddressDestroy ( sap_address_t addr)
static
static void * RunThread ( void *  self)
static
int SAP_Add ( sap_handler_t p_sap,
session_descriptor_t p_session 
)
sap_handler_t* SAP_Create ( vlc_object_t p_announce)
read

Create the SAP handler.

Parameters
p_announcea VLC object
Returns
the newly created SAP handler or NULL on error

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 
)
void SAP_Destroy ( sap_handler_t p_sap)