Mercurial > dovecot > original-hg > dovecot-1.2
annotate 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 |
rev | line source |
---|---|
0 | 1 #ifndef __CLIENT_H |
2 #define __CLIENT_H | |
3 | |
4 #include "network.h" | |
5 | |
903
fd8888f6f037
Naming style changes, finally got tired of most of the typedefs. Also the
Timo Sirainen <tss@iki.fi>
parents:
765
diff
changeset
|
6 struct client { |
0 | 7 time_t created; |
8 int refcount; | |
903
fd8888f6f037
Naming style changes, finally got tired of most of the typedefs. Also the
Timo Sirainen <tss@iki.fi>
parents:
765
diff
changeset
|
9 struct ip_addr ip; |
0 | 10 |
11 int fd; | |
903
fd8888f6f037
Naming style changes, finally got tired of most of the typedefs. Also the
Timo Sirainen <tss@iki.fi>
parents:
765
diff
changeset
|
12 struct io *io; |
fd8888f6f037
Naming style changes, finally got tired of most of the typedefs. Also the
Timo Sirainen <tss@iki.fi>
parents:
765
diff
changeset
|
13 struct istream *input; |
fd8888f6f037
Naming style changes, finally got tired of most of the typedefs. Also the
Timo Sirainen <tss@iki.fi>
parents:
765
diff
changeset
|
14 struct ostream *output; |
919
5ebec31b49e0
Login process now uses the same imap-parser as the imap process itself. This
Timo Sirainen <tss@iki.fi>
parents:
903
diff
changeset
|
15 struct imap_parser *parser; |
0 | 16 |
17 time_t last_input; | |
919
5ebec31b49e0
Login process now uses the same imap-parser as the imap process itself. This
Timo Sirainen <tss@iki.fi>
parents:
903
diff
changeset
|
18 const char *cmd_tag, *cmd_name; |
0 | 19 |
903
fd8888f6f037
Naming style changes, finally got tired of most of the typedefs. Also the
Timo Sirainen <tss@iki.fi>
parents:
765
diff
changeset
|
20 buffer_t *plain_login; |
fd8888f6f037
Naming style changes, finally got tired of most of the typedefs. Also the
Timo Sirainen <tss@iki.fi>
parents:
765
diff
changeset
|
21 struct auth_request *auth_request; |
0 | 22 |
23 unsigned int tls:1; | |
919
5ebec31b49e0
Login process now uses the same imap-parser as the imap process itself. This
Timo Sirainen <tss@iki.fi>
parents:
903
diff
changeset
|
24 unsigned int cmd_finished:1; |
0 | 25 }; |
26 | |
903
fd8888f6f037
Naming style changes, finally got tired of most of the typedefs. Also the
Timo Sirainen <tss@iki.fi>
parents:
765
diff
changeset
|
27 struct client *client_create(int fd, struct ip_addr *ip, int imaps); |
fd8888f6f037
Naming style changes, finally got tired of most of the typedefs. Also the
Timo Sirainen <tss@iki.fi>
parents:
765
diff
changeset
|
28 void client_destroy(struct client *client, const char *reason); |
0 | 29 |
903
fd8888f6f037
Naming style changes, finally got tired of most of the typedefs. Also the
Timo Sirainen <tss@iki.fi>
parents:
765
diff
changeset
|
30 void client_ref(struct client *client); |
fd8888f6f037
Naming style changes, finally got tired of most of the typedefs. Also the
Timo Sirainen <tss@iki.fi>
parents:
765
diff
changeset
|
31 int client_unref(struct client *client); |
0 | 32 |
903
fd8888f6f037
Naming style changes, finally got tired of most of the typedefs. Also the
Timo Sirainen <tss@iki.fi>
parents:
765
diff
changeset
|
33 void client_send_line(struct client *client, const char *line); |
fd8888f6f037
Naming style changes, finally got tired of most of the typedefs. Also the
Timo Sirainen <tss@iki.fi>
parents:
765
diff
changeset
|
34 void client_send_tagline(struct client *client, const char *line); |
fd8888f6f037
Naming style changes, finally got tired of most of the typedefs. Also the
Timo Sirainen <tss@iki.fi>
parents:
765
diff
changeset
|
35 void client_syslog(struct client *client, const char *text); |
0 | 36 |
903
fd8888f6f037
Naming style changes, finally got tired of most of the typedefs. Also the
Timo Sirainen <tss@iki.fi>
parents:
765
diff
changeset
|
37 int client_read(struct client *client); |
fd8888f6f037
Naming style changes, finally got tired of most of the typedefs. Also the
Timo Sirainen <tss@iki.fi>
parents:
765
diff
changeset
|
38 void client_input(void *context, int fd, struct io *io); |
0 | 39 |
613
1906116a62ce
Finally support for handling each login connection in it's own process.
Timo Sirainen <tss@iki.fi>
parents:
410
diff
changeset
|
40 unsigned int clients_get_count(void); |
1906116a62ce
Finally support for handling each login connection in it's own process.
Timo Sirainen <tss@iki.fi>
parents:
410
diff
changeset
|
41 void clients_destroy_all(void); |
1906116a62ce
Finally support for handling each login connection in it's own process.
Timo Sirainen <tss@iki.fi>
parents:
410
diff
changeset
|
42 |
0 | 43 void clients_init(void); |
44 void clients_deinit(void); | |
45 | |
46 #endif |