diff options
Diffstat (limited to 'src/xine-engine/io_helper.h')
-rw-r--r-- | src/xine-engine/io_helper.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/xine-engine/io_helper.h b/src/xine-engine/io_helper.h index bcaff1b08..0b1d522e3 100644 --- a/src/xine-engine/io_helper.h +++ b/src/xine-engine/io_helper.h @@ -66,6 +66,11 @@ int _x_io_select (xine_stream_t *stream, int fd, int state, int timeout_msec); int _x_io_tcp_connect(xine_stream_t *stream, const char *host, int port); /* + * wait for finish connection + */ +int _x_io_tcp_connect_finish(xine_stream_t *stream, int fd, int timeout_msec); + +/* * read from tcp socket checking demux_action_pending * * network input plugins should use this function in order to @@ -107,4 +112,9 @@ off_t _x_io_file_read (xine_stream_t *stream, int fd, char *buf, off_t todo); */ off_t _x_io_file_write (xine_stream_t *stream, int fd, char *buf, off_t todo); +/* + * read a string from socket, return size length + */ +int _x_io_tcp_read_line(xine_stream_t *stream, int sock, char *str, int size); + #endif |