Lines Matching defs:ostream

5 #include "ostream-private.h"
9 struct ostream_private ostream;
49 if (sstream->ostream.max_buffer_size == 0) {
54 avail = sstream->ostream.max_buffer_size > sstream->buffer->used ?
55 sstream->ostream.max_buffer_size - sstream->buffer->used : 0;
80 sstream->ostream.ostream.offset += bytes_sent;
100 io_stream_set_error(&sstream->ostream.iostream,
102 sstream->ostream.ostream.stream_errno = errno;
120 struct ostream *plain_output = sstream->ssl_io->plain_output;
128 stream->ostream.stream_errno = errno;
178 struct ostream *ostream = &sstream->ostream.ostream;
186 o_stream_ref(ostream);
187 if (sstream->ostream.callback != NULL)
188 ret2 = sstream->ostream.callback(sstream->ostream.context);
190 ret2 = o_stream_flush(&sstream->ostream.ostream);
193 o_stream_unref(&ostream);
219 sstream->ostream.max_buffer_size = max_size;
223 struct ostream *openssl_o_stream_create_ssl(struct ssl_iostream *ssl_io)
231 sstream->ostream.max_buffer_size =
233 sstream->ostream.iostream.close = o_stream_ssl_close;
234 sstream->ostream.iostream.destroy = o_stream_ssl_destroy;
235 sstream->ostream.sendv = o_stream_ssl_sendv;
236 sstream->ostream.flush = o_stream_ssl_flush;
237 sstream->ostream.switch_ioloop_to = o_stream_ssl_switch_ioloop_to;
239 sstream->ostream.get_used_size = o_stream_ssl_get_used_size;
240 sstream->ostream.flush_pending = o_stream_ssl_flush_pending;
241 sstream->ostream.iostream.set_max_buffer_size =
244 sstream->ostream.callback = ssl_io->plain_output->real_stream->callback;
245 sstream->ostream.context = ssl_io->plain_output->real_stream->context;
249 return o_stream_create(&sstream->ostream, NULL,