Mercurial > dovecot > original-hg > dovecot-1.2
annotate src/login/client.h @ 410:1f0e7229ee58 HEAD
Split IOBuffer into mmaped IBuffer, file IBuffer, memory data IBuffer and
file OBuffer.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 14 Oct 2002 02:49:11 +0300 |
parents | 2c6b6594a14b |
children | 1906116a62ce |
rev | line source |
---|---|
0 | 1 #ifndef __CLIENT_H |
2 #define __CLIENT_H | |
3 | |
4 #include "network.h" | |
5 | |
6 struct _Client { | |
7 time_t created; | |
8 int refcount; | |
9 IPADDR ip; | |
10 | |
11 int fd; | |
12 IO io; | |
410
1f0e7229ee58
Split IOBuffer into mmaped IBuffer, file IBuffer, memory data IBuffer and
Timo Sirainen <tss@iki.fi>
parents:
350
diff
changeset
|
13 IBuffer *inbuf; |
1f0e7229ee58
Split IOBuffer into mmaped IBuffer, file IBuffer, memory data IBuffer and
Timo Sirainen <tss@iki.fi>
parents:
350
diff
changeset
|
14 OBuffer *outbuf; |
0 | 15 |
16 time_t last_input; | |
17 char *tag; | |
18 | |
350 | 19 unsigned char *plain_login; |
0 | 20 unsigned int plain_login_len; |
21 | |
22 AuthRequest *auth_request; | |
23 | |
24 unsigned int tls:1; | |
25 }; | |
26 | |
27 Client *client_create(int fd, IPADDR *ip); | |
28 void client_destroy(Client *client, const char *reason); | |
29 | |
30 void client_ref(Client *client); | |
31 int client_unref(Client *client); | |
32 | |
33 void client_send_line(Client *client, const char *line); | |
34 void client_send_tagline(Client *client, const char *line); | |
35 void client_syslog(Client *client, const char *text); | |
36 | |
37 int client_read(Client *client); | |
10
82b7de533f98
s/user_data/context/ and some s/Data/Context/
Timo Sirainen <tss@iki.fi>
parents:
0
diff
changeset
|
38 void client_input(void *context, int fd, IO io); |
0 | 39 |
40 void clients_init(void); | |
41 void clients_deinit(void); | |
42 | |
43 #endif |