iostream-proxy.h revision 2454dfa32c93c20a8522c6ed42fe057baaac9f9a
/* Copyright (c) 2002-2017 Dovecot authors, see the included COPYING file
*/
#ifndef IOSTREAM_PROXY_H
#define IOSTREAM_PROXY_H 1
/**
iostream-proxy
=============
This construct will proxy data between two pairs of
istream and ostream. Data is proxied from left to right
and right to left using iostream-pump.
The proxy requires you to provide completion callback. The
completion callback is called with success parameter to
indicate whether it ended with error.
The istreams and ostreams are reffed on creation and unreffed
on unref.
**/
struct istream;
struct ostream;
struct iostream_proxy;
enum iostream_proxy_side {
};
bool success,
void *context);
struct iostream_proxy *
#endif