Mercurial > dovecot > core-2.2
view src/doveadm/client-connection.h @ 19604:c996bc091c6b
master: Do not close stdout if going foreground
This lets one to use /dev/stdout for logging. Mainly
useful for testing purposes where we can generate
log output to stdout and use tee to write it to a
file for later examination.
author | Aki Tuomi <aki.tuomi@dovecot.fi> |
---|---|
date | Mon, 18 Jan 2016 15:50:23 +0200 |
parents | aabfe48db1cf |
children | e7e593e68fce |
line wrap: on
line source
#ifndef CLIENT_CONNECTION_H #define CLIENT_CONNECTION_H #include "net.h" struct client_connection { pool_t pool; int fd; struct io *io; struct istream *input; struct ostream *output; struct ssl_iostream *ssl_iostream; struct ip_addr local_ip, remote_ip; in_port_t local_port, remote_port; const struct doveadm_settings *set; unsigned int handshaked:1; unsigned int authenticated:1; }; struct client_connection * client_connection_create(int fd, int listen_fd, bool ssl); void client_connection_destroy(struct client_connection **conn); struct ostream *client_connection_get_output(struct client_connection *conn); #endif