Mercurial > dovecot > core-2.2
view src/lib/istream-multiplex.h @ 22553:7db517071db5
lib: Add multiplex stream support
This allows having multiple channels of data in single stream.
author | Aki Tuomi <aki.tuomi@dovecot.fi> |
---|---|
date | Tue, 22 Aug 2017 10:14:22 +0300 |
parents | |
children |
line wrap: on
line source
#ifndef ISTREAM_MULTIPLEX #define ISTREAM_MULTIPLEX 1 struct istream *i_stream_create_multiplex(struct istream *parent, size_t bufsize); struct istream *i_stream_multiplex_add_channel(struct istream *stream, uint8_t cid); uint8_t i_stream_multiplex_get_channel_id(struct istream *stream); #endif