|
xine-lib
1.2.9
|
#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) |
| #define XIO_FILE_READ 0 |
Referenced by _x_io_file_read(), and xio_rw_abort().
| #define XIO_FILE_WRITE 1 |
Referenced by _x_io_file_write(), and xio_rw_abort().
| #define XIO_POLLING_INTERVAL 50000 /* usec */ |
Referenced by _x_io_select().
| #define XIO_TCP_READ 2 |
Referenced by _x_io_tcp_read(), _x_io_tcp_read_line(), and xio_rw_abort().
| #define XIO_TCP_WRITE 3 |
Referenced by _x_io_tcp_write(), and xio_rw_abort().
| 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().
| 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().
| int _x_io_select | ( | xine_stream_t * | stream, |
| int | fd, | ||
| int | state, | ||
| int | timeout_msec | ||
| ) |
References _, _x_action_pending(), NULL, xine_stream_s::xine, xine_log(), XINE_LOG_MSG, XIO_ABORTED, XIO_ERROR, XIO_POLLING_INTERVAL, XIO_READ_READY, XIO_READY, XIO_TIMEOUT, and XIO_WRITE_READY.
Referenced by _x_io_tcp_connect_finish(), http_plugin_open(), mms_tcp_connect(), mmsh_tcp_connect(), stdin_plugin_wait(), and xio_rw_abort().
| int _x_io_tcp_connect | ( | xine_stream_t * | stream, |
| const char * | host, | ||
| int | port | ||
| ) |
References _x_io_tcp_connect_ipv4(), _x_message(), NULL, xine_stream_s::xine, XINE_MSG_CONNECTION_REFUSED, XINE_MSG_UNKNOWN_HOST, xine_socket_cloexec(), XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by _cdda_cddb_socket_open(), http_plugin_open(), mms_tcp_connect(), mmsh_tcp_connect(), network_connect(), pnm_connect(), and rtsp_connect().
| int _x_io_tcp_connect_finish | ( | xine_stream_t * | stream, |
| int | fd, | ||
| int | timeout_msec | ||
| ) |
References _, _x_io_select(), _x_message(), NULL, XINE_MSG_CONNECTION_REFUSED, XIO_ERROR, XIO_READY, and XIO_WRITE_READY.
Referenced by _cdda_cddb_socket_open().
|
static |
References _x_message(), NULL, xine_stream_s::xine, XINE_MSG_CONNECTION_REFUSED, XINE_MSG_UNKNOWN_HOST, xine_socket_cloexec(), XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by _x_io_tcp_connect().
| off_t _x_io_tcp_read | ( | xine_stream_t * | stream, |
| int | s, | ||
| void * | buf, | ||
| off_t | todo | ||
| ) |
References NULL, xio_rw_abort(), and XIO_TCP_READ.
Referenced by get_answer(), get_asf_header(), get_chunk_header(), get_header(), get_media_packet(), get_packet_command(), get_packet_header(), http_plugin_open(), http_plugin_read_int(), http_plugin_read_metainf(), pnm_get_chunk(), pnm_get_headers(), pnm_get_stream_chunk(), rtsp_read_data(), and XINE_FORMAT_PRINTF().
| int _x_io_tcp_read_line | ( | xine_stream_t * | stream, |
| int | sock, | ||
| char * | str, | ||
| int | size | ||
| ) |
References NULL, xio_rw_abort(), and XIO_TCP_READ.
Referenced by _cdda_cddb_socket_read(), rtsp_get(), and XINE_FORMAT_PRINTF().
| off_t _x_io_tcp_write | ( | xine_stream_t * | stream, |
| int | s, | ||
| const void * | buf, | ||
| off_t | todo | ||
| ) |
References NULL, xio_rw_abort(), and XIO_TCP_WRITE.
Referenced by _cdda_cddb_send_command(), http_plugin_open(), pnm_get_stream_chunk(), pnm_send_request(), pnm_send_response(), rtsp_put(), send_command(), and XINE_FORMAT_PRINTF().
|
static |
References _, _x_assert, _x_io_select(), _x_message(), NULL, xine_cfg_entry_s::num_value, xine_stream_s::xine, xine_config_lookup_entry(), xine_log(), XINE_LOG_MSG, XINE_MSG_CONNECTION_REFUSED, XINE_MSG_FILE_NOT_FOUND, XINE_MSG_PERMISSION_ERROR, XINE_VERBOSITY_DEBUG, XIO_FILE_READ, XIO_FILE_WRITE, XIO_READ_READY, XIO_READY, XIO_TCP_READ, XIO_TCP_WRITE, XIO_WRITE_READY, and xprintf.
Referenced by _x_io_file_read(), _x_io_file_write(), _x_io_tcp_read(), _x_io_tcp_read_line(), and _x_io_tcp_write().
1.8.14