#ifndef CLIENT_CONNECTION_H #define CLIENT_CONNECTION_H #include "net.h" #define DOVEADM_LOG_CHANNEL_ID 'L' struct client_connection { pool_t pool; enum doveadm_client_type type; const char *name; struct ip_addr local_ip, remote_ip; in_port_t local_port, remote_port; const struct doveadm_settings *set; void (*free)(struct client_connection *conn); }; struct client_connection * client_connection_tcp_create(int fd, int listen_fd, bool ssl); struct client_connection * client_connection_http_create(int fd, bool ssl); #endif