]>
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$ | |
c27b3454 | 9 | * Revision 1.4 1987-06-21 16:42:07 wesommer |
10 | * Performance work, rearrangement of include files. | |
eab30d01 | 11 | * |
c27b3454 | 12 | * Revision 1.3 87/06/03 16:07:59 wesommer |
13 | * Fixes for lint. | |
14 | * | |
5dbd09a0 | 15 | * Revision 1.2 87/06/01 03:35:10 wesommer |
16 | * added stuff for authentication. | |
17 | * | |
eab30d01 | 18 | */ |
19 | ||
5dbd09a0 | 20 | #include <sys/types.h> |
21 | #include <sys/uio.h> | |
22 | #include <sys/socket.h> | |
23 | #include <netinet/in.h> | |
c27b3454 | 24 | #include "sms_proto.h" |
5dbd09a0 | 25 | |
c27b3454 | 26 | typedef struct returned_tuples { |
27 | struct returned_tuples *next; | |
28 | OPERATION op; | |
29 | } returned_tuples; | |
5dbd09a0 | 30 | |
0fa91a0a | 31 | typedef struct _client { |
32 | OPERATION pending_op; | |
33 | CONNECTION con; | |
34 | int state; | |
35 | int action; | |
eab30d01 | 36 | sms_params *args, reply; |
37 | int id; /* Unique id of client */ | |
38 | struct sockaddr_in haddr; | |
39 | char *clname; | |
c27b3454 | 40 | returned_tuples *first, *last; |
0fa91a0a | 41 | } client; |
42 | ||
43 | /* | |
44 | * States | |
45 | */ | |
46 | ||
47 | #define CL_DEAD 0 | |
48 | #define CL_STARTING 1 | |
49 | ||
50 | /* | |
51 | * Actions. | |
52 | */ | |
53 | ||
54 | #define CL_ACCEPT 0 | |
55 | #define CL_RECEIVE 1 | |
56 | #define CL_SEND 2 | |
57 |