diff options
author | John Kohl <jtkohl@mit.edu> | 1988-06-03 10:58:23 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1988-06-03 10:58:23 +0000 |
commit | 965b58cf0ada494d1a49319830a926948592a5e9 (patch) | |
tree | eb70be457b26d97890cfd9e187c371fb3e83996b /server/zserver.h | |
parent | 4b78eb8be751af767097e27dc5a21c1190270c72 (diff) |
sys/uio.h included here to make lint shut up.
not-acknowledged chains keep track of client address, not client pointer.
declare xmit(); remove references to zctl.c
Diffstat (limited to 'server/zserver.h')
-rw-r--r-- | server/zserver.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/server/zserver.h b/server/zserver.h index f0d850f..b6f6716 100644 --- a/server/zserver.h +++ b/server/zserver.h @@ -29,6 +29,9 @@ #include <syslog.h> #include <strings.h> #include <signal.h> +#ifdef lint +#include <sys/uio.h> /* so it shuts up about struct iovec */ +#endif lint #include "timer.h" #include "zsrv_err.h" @@ -103,10 +106,10 @@ typedef struct _ZNotAcked_t { int na_packsz; /* size of packet */ ZUnique_Id_t na_uid; /* uid of packet */ union { /* address to send to */ - ZClient_t *na_clt; /* client descr */ + struct sockaddr_in na_sin; /* client address */ int srv_idx; /* index of server */ } dest; -#define na_client dest.na_clt +#define na_addr dest.na_sin #define na_srv_idx dest.srv_idx } ZNotAcked_t; @@ -173,6 +176,8 @@ extern char *strsave(); /* found in dispatch.c */ extern void handle_packet(), dispatch(), clt_ack(), nack_release(), sendit(); +extern void xmit(); +extern Code_t control_dispatch(); /* found in hostm_s.c */ extern void hostm_flush(), hostm_shutdown(), hostm_losing(); @@ -201,9 +206,6 @@ extern void subscr_dump_subs(); extern void uloc_hflush(), uloc_flush_client(), uloc_dump_locs(); extern Code_t ulogin_dispatch(), ulocate_dispatch(), uloc_send_locations(); -/* found in zctl.c */ -extern Code_t control_dispatch(); - /* found in libc.a */ char *malloc(), *realloc(); long random(); |