xine-lib 1.2.11
Data Structures | Macros | Functions
broadcaster.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
#include <stdarg.h>
#include <string.h>
#include <signal.h>
#include <errno.h>
#include <sys/time.h>
#include <dlfcn.h>
#include <pthread.h>
#include <xine/xine_internal.h>
#include <xine/buffer.h>
#include <xine/xineutils.h>
#include "xine_private.h"

Data Structures

struct  broadcaster_s
 

Macros

#define QLEN   5 /* maximum connection queue length */
 
#define _BUFSIZ   512
 

Functions

static int sock_check_opened (int socket)
 
static int sock_data_write (xine_t *xine, int socket, const void *buf_gen, int len)
 
static int XINE_FORMAT_PRINTF (3, 4)
 
static void broadcaster_data_write (broadcaster_t *this, const void *buf, int len)
 
static void XINE_FORMAT_PRINTF (2, 3)
 
static void * manager_loop (void *this_gen)
 
static void send_buf (broadcaster_t *this, const char *from, buf_element_t *buf)
 
static void video_put_cb (fifo_buffer_t *fifo, buf_element_t *buf, void *this_gen)
 
static void audio_put_cb (fifo_buffer_t *fifo, buf_element_t *buf, void *this_gen)
 
broadcaster_t_x_init_broadcaster (xine_stream_t *stream, int port)
 
void _x_close_broadcaster (broadcaster_t *this_gen)
 
int _x_get_broadcaster_port (broadcaster_t *this_gen)
 

Macro Definition Documentation

◆ _BUFSIZ

#define _BUFSIZ   512

◆ QLEN

#define QLEN   5 /* maximum connection queue length */

Function Documentation

◆ _x_close_broadcaster()

void _x_close_broadcaster ( broadcaster_t this_gen)

◆ _x_get_broadcaster_port()

int _x_get_broadcaster_port ( broadcaster_t this_gen)

References broadcaster_s::port.

Referenced by xine_get_param().

◆ _x_init_broadcaster()

broadcaster_t * _x_init_broadcaster ( xine_stream_t stream,
int  port 
)

◆ audio_put_cb()

static void audio_put_cb ( fifo_buffer_t fifo,
buf_element_t buf,
void *  this_gen 
)
static

References send_buf().

Referenced by _x_close_broadcaster(), and _x_init_broadcaster().

◆ broadcaster_data_write()

static void broadcaster_data_write ( broadcaster_t this,
const void *  buf,
int  len 
)
static

◆ manager_loop()

static void * manager_loop ( void *  this_gen)
static

◆ send_buf()

static void send_buf ( broadcaster_t this,
const char *  from,
buf_element_t buf 
)
static

◆ sock_check_opened()

static int sock_check_opened ( int  socket)
static

Referenced by sock_data_write().

◆ sock_data_write()

static int sock_data_write ( xine_t xine,
int  socket,
const void *  buf_gen,
int  len 
)
static

◆ video_put_cb()

static void video_put_cb ( fifo_buffer_t fifo,
buf_element_t buf,
void *  this_gen 
)
static

References send_buf().

Referenced by _x_close_broadcaster(), and _x_init_broadcaster().

◆ XINE_FORMAT_PRINTF() [1/2]

static void XINE_FORMAT_PRINTF ( ,
 
)
static

◆ XINE_FORMAT_PRINTF() [2/2]

static int XINE_FORMAT_PRINTF ( ,
 
)
static

References _BUFSIZ, and sock_data_write().