xine-lib  1.2.9
Data Structures | Macros | Functions
input_net.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#include <sys/time.h>
#include <xine/xine_internal.h>
#include <xine/xineutils.h>
#include <xine/input_plugin.h>
#include "net_buf_ctrl.h"
#include "group_network.h"

Data Structures

struct  net_input_plugin_t
 
struct  net_input_class_t
 

Macros

#define LOG_MODULE   "input_net"
 
#define LOG_VERBOSE
 
#define NET_BS_LEN   2324
 
#define BUFSIZE   1024
 
#define LOW_WATER_MARK   50
 
#define HIGH_WATER_MARK   100
 

Functions

static int host_connect_attempt_ipv4 (struct in_addr ia, int port, xine_t *xine)
 
static int host_connect_ipv4 (const char *host, int port, xine_t *xine)
 
static int host_connect (const char *host, int port, xine_t *xine)
 
static off_t net_plugin_read (input_plugin_t *this_gen, void *buf_gen, off_t len)
 
static buf_element_tnet_plugin_read_block (input_plugin_t *this_gen, fifo_buffer_t *fifo, off_t todo)
 
static off_t net_plugin_get_length (input_plugin_t *this_gen)
 
static uint32_t net_plugin_get_capabilities (input_plugin_t *this_gen)
 
static uint32_t net_plugin_get_blocksize (input_plugin_t *this_gen)
 
static off_t net_plugin_get_current_pos (input_plugin_t *this_gen)
 
static off_t net_plugin_seek (input_plugin_t *this_gen, off_t offset, int origin)
 
static const char * net_plugin_get_mrl (input_plugin_t *this_gen)
 
static int net_plugin_get_optional_data (input_plugin_t *this_gen, void *data, int data_type)
 
static void net_plugin_dispose (input_plugin_t *this_gen)
 
static int net_plugin_open (input_plugin_t *this_gen)
 
static input_plugin_tnet_class_get_instance (input_class_t *cls_gen, xine_stream_t *stream, const char *mrl)
 
void * input_net_init_class (xine_t *xine, void *data)
 

Macro Definition Documentation

◆ BUFSIZE

#define BUFSIZE   1024

Referenced by net_plugin_seek().

◆ HIGH_WATER_MARK

#define HIGH_WATER_MARK   100

◆ LOG_MODULE

#define LOG_MODULE   "input_net"

◆ LOG_VERBOSE

#define LOG_VERBOSE

◆ LOW_WATER_MARK

#define LOW_WATER_MARK   50

◆ NET_BS_LEN

#define NET_BS_LEN   2324

Function Documentation

◆ host_connect()

static int host_connect ( const char *  host,
int  port,
xine_t xine 
)
static

◆ host_connect_attempt_ipv4()

static int host_connect_attempt_ipv4 ( struct in_addr  ia,
int  port,
xine_t xine 
)
static

◆ host_connect_ipv4()

static int host_connect_ipv4 ( const char *  host,
int  port,
xine_t xine 
)
static

◆ input_net_init_class()

void* input_net_init_class ( xine_t xine,
void *  data 
)

◆ net_class_get_instance()

static input_plugin_t* net_class_get_instance ( input_class_t cls_gen,
xine_stream_t stream,
const char *  mrl 
)
static

◆ net_plugin_dispose()

static void net_plugin_dispose ( input_plugin_t this_gen)
static

References nbc_close(), and NULL.

Referenced by net_class_get_instance().

◆ net_plugin_get_blocksize()

static uint32_t net_plugin_get_blocksize ( input_plugin_t this_gen)
static

References NET_BS_LEN.

Referenced by net_class_get_instance().

◆ net_plugin_get_capabilities()

static uint32_t net_plugin_get_capabilities ( input_plugin_t this_gen)
static

References INPUT_CAP_PREVIEW.

Referenced by net_class_get_instance().

◆ net_plugin_get_current_pos()

static off_t net_plugin_get_current_pos ( input_plugin_t this_gen)
static

Referenced by net_class_get_instance().

◆ net_plugin_get_length()

static off_t net_plugin_get_length ( input_plugin_t this_gen)
static

Referenced by net_class_get_instance().

◆ net_plugin_get_mrl()

static const char* net_plugin_get_mrl ( input_plugin_t this_gen)
static

Referenced by net_class_get_instance().

◆ net_plugin_get_optional_data()

static int net_plugin_get_optional_data ( input_plugin_t this_gen,
void *  data,
int  data_type 
)
static

◆ net_plugin_open()

static int net_plugin_open ( input_plugin_t this_gen)
static

References host_connect(), and MAX_PREVIEW_SIZE.

Referenced by net_class_get_instance().

◆ net_plugin_read()

static off_t net_plugin_read ( input_plugin_t this_gen,
void *  buf_gen,
off_t  len 
)
static

◆ net_plugin_read_block()

static buf_element_t* net_plugin_read_block ( input_plugin_t this_gen,
fifo_buffer_t fifo,
off_t  todo 
)
static

◆ net_plugin_seek()

static off_t net_plugin_seek ( input_plugin_t this_gen,
off_t  offset,
int  origin 
)
static