]>
Commit | Line | Data |
---|---|---|
eab30d01 | 1 | /* |
2 | * $Source$ | |
3 | * $Author$ | |
4 | * $Header$ | |
5 | * | |
6 | * Copyright (C) 1987 by the Massachusetts Institute of Technology | |
7 | * | |
8 | * $Log$ | |
9 | * Revision 1.2 1987-06-01 03:35:10 wesommer | |
10 | * added stuff for authentication. | |
11 | * | |
12 | */ | |
13 | ||
0fa91a0a | 14 | typedef struct _client { |
15 | OPERATION pending_op; | |
16 | CONNECTION con; | |
17 | int state; | |
18 | int action; | |
eab30d01 | 19 | sms_params *args, reply; |
20 | int id; /* Unique id of client */ | |
21 | struct sockaddr_in haddr; | |
22 | char *clname; | |
0fa91a0a | 23 | } client; |
24 | ||
25 | /* | |
26 | * States | |
27 | */ | |
28 | ||
29 | #define CL_DEAD 0 | |
30 | #define CL_STARTING 1 | |
31 | ||
32 | /* | |
33 | * Actions. | |
34 | */ | |
35 | ||
36 | #define CL_ACCEPT 0 | |
37 | #define CL_RECEIVE 1 | |
38 | #define CL_SEND 2 | |
39 |