summaryrefslogtreecommitdiff
path: root/src/xine-engine/io_helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/xine-engine/io_helper.h')
-rw-r--r--src/xine-engine/io_helper.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xine-engine/io_helper.h b/src/xine-engine/io_helper.h
index 0b1d522e3..9a174a09e 100644
--- a/src/xine-engine/io_helper.h
+++ b/src/xine-engine/io_helper.h
@@ -113,7 +113,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
+ * read a string from socket, return string length (same as strlen)
+ * the string is always '\0' terminated but given buffer size is never exceeded
+ * that is, _x_io_tcp_read_line(,,,X) <= (X-1) ; X > 0
*/
int _x_io_tcp_read_line(xine_stream_t *stream, int sock, char *str, int size);