summaryrefslogtreecommitdiff
path: root/server/zserver.h
diff options
context:
space:
mode:
authorGravatar Jeffrey Hutzelman <jhutz@cmu.edu>2013-01-05 15:29:16 -0500
committerGravatar Jeffrey Hutzelman <jhutz@cmu.edu>2013-02-17 22:34:40 -0500
commit49ff374f565b46d63678d1ea92eba436eacaa8cc (patch)
tree68ef33177f1d02ac76ace262e72d6ea2d9f0abe7 /server/zserver.h
parent959c68d69e1887cb119f82bf0d64409936696fc0 (diff)
Abstract realm server usability test
Whether a particular server is usable currently depends only on whether we have successfully obtained its IP address. However, eventually it will also depend on additional factors such as whether the server has been deleted from the realm.list. To ease that transition, replace the 'usable' flag with a 'got_addr' flag (which is set when the address lookup succeeds), and add a new function to test whether a server is usable.
Diffstat (limited to 'server/zserver.h')
-rw-r--r--server/zserver.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/zserver.h b/server/zserver.h
index fc6f847..ecdd06e 100644
--- a/server/zserver.h
+++ b/server/zserver.h
@@ -114,8 +114,8 @@ struct _Destlist {
struct _ZRealm_server {
String *name; /* server's hostname */
struct sockaddr_in addr; /* server's address */
- unsigned int usable :1; /* set once entry is usable */
unsigned int dontsend :1; /* private server, do not send */
+ unsigned int got_addr :1; /* IP address is valid */
};
struct _ZRealm {