summaryrefslogtreecommitdiffstats
path: root/src/lib/iostream.h
blob: 87bc37486b1a24d460394ea827c9c800b0963f59 (plain)
1
2
3
4
5
6
7
8
9
10
#ifndef IOSTREAM_H
#define IOSTREAM_H

/* Returns human-readable reason for why iostream was disconnected.
   The output is either "Connection closed" for clean disconnections or
   "Connection closed: <error>" for unclean disconnections. */
const char *io_stream_get_disconnect_reason(struct istream *input,
					    struct ostream *output);

#endif