From be9c9f0a5b6d598fb9eeb8e4d2d2cfef367dd759 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 14 Jan 1997 00:07:17 +0000 Subject: Move as much stuff into server data as possible. svn path=/trunk/; revision=756 --- fetchmail.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'fetchmail.h') diff --git a/fetchmail.h b/fetchmail.h index 56b146b1..5145ed6d 100644 --- a/fetchmail.h +++ b/fetchmail.h @@ -62,6 +62,7 @@ struct idlist struct hostdata /* shared among all user connections to given server */ { + /* rc file data */ struct idlist *names; /* server name first, then akas */ struct idlist *localdomains; /* list of pass-through domains */ int protocol; @@ -70,6 +71,12 @@ struct hostdata /* shared among all user connections to given server */ int timeout; char *envelope; int skip; + + /* computed for internal use */ +#ifdef HAVE_GETHOSTBYNAME + char *canonical_name; /* DNS canonical name of server host */ +#endif /* HAVE_GETHOSTBYNAME */ + struct hostdata *lead_server; /* ptr to lead query for this server */ }; struct query @@ -104,12 +111,8 @@ struct query struct query *next; /* next query control block in chain */ struct query *lead_smtp; /* pointer to this query's SMTP leader */ FILE *smtp_sockfp; /* socket descriptor for SMTP connection */ - struct query *lead_server; /* pointer to lead query for this server */ unsigned int uid; /* UID of user to deliver to */ char digest [DIGESTLEN]; /* md5 digest buffer */ -#ifdef HAVE_GETHOSTBYNAME - char *canonical_name; /* DNS canonical name of server host */ -#endif /* HAVE_GETHOSTBYNAME */ }; #define MULTIDROP(ctl) (ctl->wildcard || \ -- cgit v1.2.3