From 6452eb4960a542328615730b6a11d24a1281a457 Mon Sep 17 00:00:00 2001 From: Jeffrey Hutzelman Date: Sun, 25 Nov 2012 04:55:43 -0500 Subject: Introduce usable flag on other-realm servers Introduce a new per-realm-server 'usable' flag, which indicates the entry has been fully initialized and can be used. Routines which select a server or attempt to find one based on its address should ignore servers on which the usable flag is not set. This will allow the introduction of features which require recording servers which are not yet usable, such as asynchronous server name resolution. --- server/zserver.h | 1 + 1 file changed, 1 insertion(+) (limited to 'server/zserver.h') diff --git a/server/zserver.h b/server/zserver.h index 20c229d..b61cc06 100644 --- a/server/zserver.h +++ b/server/zserver.h @@ -113,6 +113,7 @@ struct _Destlist { struct _ZRealm_server { 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 */ }; -- cgit v1.2.3