view src/lib/istream-timeout.h @ 23007:36e01285b5b8

lib: buffer - Improve header comment for buffer_insert() and buffer_delete().
author Stephan Bosch <stephan.bosch@dovecot.fi>
date Mon, 18 Mar 2019 00:52:37 +0100
parents b1a756176ed2
children
line wrap: on
line source

#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