xine-lib  1.2.9
Macros | Functions
io_helper.c File Reference
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/time.h>
#include <sys/types.h>
#include <errno.h>
#include <string.h>
#include <xine/io_helper.h>

Macros

#define XIO_FILE_READ   0
 
#define XIO_FILE_WRITE   1
 
#define XIO_TCP_READ   2
 
#define XIO_TCP_WRITE   3
 
#define XIO_POLLING_INTERVAL   50000 /* usec */
 

Functions

static int _x_io_tcp_connect_ipv4 (xine_stream_t *stream, const char *host, int port)
 
int _x_io_tcp_connect (xine_stream_t *stream, const char *host, int port)
 
int _x_io_select (xine_stream_t *stream, int fd, int state, int timeout_msec)
 
int _x_io_tcp_connect_finish (xine_stream_t *stream, int fd, int timeout_msec)
 
static off_t xio_rw_abort (xine_stream_t *stream, int fd, int cmd, void *buf_gen, const void *wbuf_gen, off_t todo)
 
off_t _x_io_tcp_read (xine_stream_t *stream, int s, void *buf, off_t todo)
 
off_t _x_io_tcp_write (xine_stream_t *stream, int s, const void *buf, off_t todo)
 
off_t _x_io_file_read (xine_stream_t *stream, int s, void *buf, off_t todo)
 
off_t _x_io_file_write (xine_stream_t *stream, int s, const void *buf, off_t todo)
 
int _x_io_tcp_read_line (xine_stream_t *stream, int sock, char *str, int size)
 

Macro Definition Documentation

◆ XIO_FILE_READ

#define XIO_FILE_READ   0

Referenced by _x_io_file_read(), and xio_rw_abort().

◆ XIO_FILE_WRITE

#define XIO_FILE_WRITE   1

Referenced by _x_io_file_write(), and xio_rw_abort().

◆ XIO_POLLING_INTERVAL

#define XIO_POLLING_INTERVAL   50000 /* usec */

Referenced by _x_io_select().

◆ XIO_TCP_READ

#define XIO_TCP_READ   2

◆ XIO_TCP_WRITE

#define XIO_TCP_WRITE   3

Referenced by _x_io_tcp_write(), and xio_rw_abort().

Function Documentation

◆ _x_io_file_read()

off_t _x_io_file_read ( xine_stream_t stream,
int  s,
void *  buf,
off_t  todo 
)

References NULL, XIO_FILE_READ, and xio_rw_abort().

◆ _x_io_file_write()

off_t _x_io_file_write ( xine_stream_t stream,
int  s,
const void *  buf,
off_t  todo 
)

References NULL, XIO_FILE_WRITE, and xio_rw_abort().

◆ _x_io_select()

int _x_io_select ( xine_stream_t stream,
int  fd,
int  state,
int  timeout_msec 
)

◆ _x_io_tcp_connect()

int _x_io_tcp_connect ( xine_stream_t stream,
const char *  host,
int  port 
)

◆ _x_io_tcp_connect_finish()

int _x_io_tcp_connect_finish ( xine_stream_t stream,
int  fd,
int  timeout_msec 
)

◆ _x_io_tcp_connect_ipv4()

static int _x_io_tcp_connect_ipv4 ( xine_stream_t stream,
const char *  host,
int  port 
)
static

◆ _x_io_tcp_read()

off_t _x_io_tcp_read ( xine_stream_t stream,
int  s,
void *  buf,
off_t  todo 
)

◆ _x_io_tcp_read_line()

int _x_io_tcp_read_line ( xine_stream_t stream,
int  sock,
char *  str,
int  size 
)

◆ _x_io_tcp_write()

off_t _x_io_tcp_write ( xine_stream_t stream,
int  s,
const void *  buf,
off_t  todo 
)

◆ xio_rw_abort()

static off_t xio_rw_abort ( xine_stream_t stream,
int  fd,
int  cmd,
void *  buf_gen,
const void *  wbuf_gen,
off_t  todo 
)
static