diff options
Diffstat (limited to 'src/doveadm/client-connection.h')
-rw-r--r-- | src/doveadm/client-connection.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/doveadm/client-connection.h b/src/doveadm/client-connection.h new file mode 100644 index 0000000..bb3797e --- /dev/null +++ b/src/doveadm/client-connection.h @@ -0,0 +1,26 @@ +#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 |