diff options
Diffstat (limited to 'src/lib/istream-timeout.h')
-rw-r--r-- | src/lib/istream-timeout.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/istream-timeout.h b/src/lib/istream-timeout.h new file mode 100644 index 0000000..a26318a --- /dev/null +++ b/src/lib/istream-timeout.h @@ -0,0 +1,9 @@ +#ifndef ISTREAM_TIMEOUT_H +#define ISTREAM_TIMEOUT_H + +/* Return ETIMEDOUT error if read() doesn't return anything for timeout_msecs. + If timeout_msecs=0, there is no timeout. */ +struct istream * +i_stream_create_timeout(struct istream *input, unsigned int timeout_msecs); + +#endif |