Mercurial > dovecot > original-hg > dovecot-1.2
view src/login/client.h @ 919:5ebec31b49e0 HEAD
Login process now uses the same imap-parser as the imap process itself. This
fixes the problem of literals not working before logging in.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 07 Jan 2003 19:45:38 +0200 |
parents | fd8888f6f037 |
children | 0da2cb9368f6 |
line wrap: on
line source
#ifndef __CLIENT_H #define __CLIENT_H #include "network.h" struct client { time_t created; int refcount; struct ip_addr ip; int fd; struct io *io; struct istream *input; struct ostream *output; struct imap_parser *parser; time_t last_input; const char *cmd_tag, *cmd_name; buffer_t *plain_login; struct auth_request *auth_request; unsigned int tls:1; unsigned int cmd_finished:1; }; struct client *client_create(int fd, struct ip_addr *ip, int imaps); void client_destroy(struct client *client, const char *reason); void client_ref(struct client *client); int client_unref(struct client *client); void client_send_line(struct client *client, const char *line); void client_send_tagline(struct client *client, const char *line); void client_syslog(struct client *client, const char *text); int client_read(struct client *client); void client_input(void *context, int fd, struct io *io); unsigned int clients_get_count(void); void clients_destroy_all(void); void clients_init(void); void clients_deinit(void); #endif