Mercurial > dovecot > core-2.2
annotate 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 |
rev | line source |
---|---|
17189
b1a756176ed2
Added istream-timeout, which triggers I/O event and fails with ETIMEDOUT after the timeout.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
1 #ifndef ISTREAM_TIMEOUT_H |
b1a756176ed2
Added istream-timeout, which triggers I/O event and fails with ETIMEDOUT after the timeout.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
2 #define ISTREAM_TIMEOUT_H |
b1a756176ed2
Added istream-timeout, which triggers I/O event and fails with ETIMEDOUT after the timeout.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
3 |
b1a756176ed2
Added istream-timeout, which triggers I/O event and fails with ETIMEDOUT after the timeout.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
4 /* Return ETIMEDOUT error if read() doesn't return anything for timeout_msecs. |
b1a756176ed2
Added istream-timeout, which triggers I/O event and fails with ETIMEDOUT after the timeout.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
5 If timeout_msecs=0, there is no timeout. */ |
b1a756176ed2
Added istream-timeout, which triggers I/O event and fails with ETIMEDOUT after the timeout.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
6 struct istream * |
b1a756176ed2
Added istream-timeout, which triggers I/O event and fails with ETIMEDOUT after the timeout.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
7 i_stream_create_timeout(struct istream *input, unsigned int timeout_msecs); |
b1a756176ed2
Added istream-timeout, which triggers I/O event and fails with ETIMEDOUT after the timeout.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
8 |
b1a756176ed2
Added istream-timeout, which triggers I/O event and fails with ETIMEDOUT after the timeout.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
9 #endif |