summaryrefslogtreecommitdiff
path: root/src/xine-engine/io_helper.h
diff options
context:
space:
mode:
authorFrantišek Dvořák <valtri@users.sourceforge.net>2004-04-10 17:41:44 +0000
committerFrantišek Dvořák <valtri@users.sourceforge.net>2004-04-10 17:41:44 +0000
commit6c9b4d3d60563bebad18ee653a638d9e38381a07 (patch)
treef72cefe154f259e4d9ee9ca54f087bdc2fc0c4f4 /src/xine-engine/io_helper.h
parent75a3e6582d0570541b1f6bdc54821b7550721128 (diff)
downloadxine-lib-6c9b4d3d60563bebad18ee653a638d9e38381a07.tar.gz
xine-lib-6c9b4d3d60563bebad18ee653a638d9e38381a07.tar.bz2
Permit (but not recommend) stream == NULL in io_helper functions.
CVS patchset: 6385 CVS date: 2004/04/10 17:41:44
Diffstat (limited to 'src/xine-engine/io_helper.h')
-rw-r--r--src/xine-engine/io_helper.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/xine-engine/io_helper.h b/src/xine-engine/io_helper.h
index 9a174a09e..09267f882 100644
--- a/src/xine-engine/io_helper.h
+++ b/src/xine-engine/io_helper.h
@@ -44,11 +44,14 @@
* not freeze the engine.
*
* params :
+ * stream needed for aborting and reporting errors but may be NULL
* fd file/socket descriptor
* state XIO_READ_READY, XIO_WRITE_READY
- * *abort an other thread can abort this function by setting *abort
* timeout_sec timeout in seconds
*
+ * An other thread can abort this function if stream != NULL by setting
+ * stream->demux_action_pending.
+ *
* return value :
* XIO_READY the file descriptor is ready for cmd
* XIO_ERROR an i/o error occured
@@ -61,12 +64,28 @@ int _x_io_select (xine_stream_t *stream, int fd, int state, int timeout_msec);
/*
* open a tcp connection
*
+ * params :
+ * stream needed for reporting errors but may be NULL
+ * host address of target
+ * port port on target
+ *
* returns a socket descriptor or -1 if an error occured
*/
int _x_io_tcp_connect(xine_stream_t *stream, const char *host, int port);
/*
* wait for finish connection
+ *
+ * params :
+ * stream needed for aborting and reporting errors but may be NULL
+ * fd socket descriptor
+ * timeout_msec timeout in milliseconds
+ *
+ * return value:
+ * XIO_READY host respond, the socket is ready for cmd
+ * XIO_ERROR an i/o error occured
+ * XIO_ABORTED command aborted by an other thread
+ * XIO_TIMEOUT the file descriptor is not ready after timeout
*/
int _x_io_tcp_connect_finish(xine_stream_t *stream, int fd, int timeout_msec);