diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-04-23 16:03:40 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-04-23 16:03:40 +0200 |
commit | 88c7815d5fa18f51ed4ac318155822b8a688fdf5 (patch) | |
tree | c7f36d3b44fdb1ecc13dcbd8400c1c46ee029ac8 /src/mds-server.h | |
parent | add value remapping to hash table unmarshaling (diff) | |
download | mds-88c7815d5fa18f51ed4ac318155822b8a688fdf5.tar.gz mds-88c7815d5fa18f51ed4ac318155822b8a688fdf5.tar.bz2 mds-88c7815d5fa18f51ed4ac318155822b8a688fdf5.tar.xz |
m fixes + store client information in a hash table and in a linked list
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/mds-server.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mds-server.h b/src/mds-server.h index cad1fb1..5b2ab30 100644 --- a/src/mds-server.h +++ b/src/mds-server.h @@ -19,6 +19,26 @@ #define MDS_MDS_SERVER_H +#include <stdlib.h> + + +/** + * Client information structure + */ +typedef struct client +{ + /** + * The client's entry in the list of clients + */ + ssize_t list_entry; + + /** + * The socket file descriptor for the socket connected to the client + */ + int socket_fd; + +} client_t; + /** * Master function for slave threads |