Lines Matching refs:server

52     SERVER_WORKING,           /* We successfully connected to the server. */
53 SERVER_NOT_WORKING /* We tried and failed to connect to the server. */
64 * duration in seconds of how long a server or port will be considered
72 * is considered valid until we ask the server again.
124 * Adds a server 'name' to the 'service'. Port 'port' will be used for
125 * connection. If 'name' is NULL, no server resolution will be done.
139 * Request the first server from the service's list of servers. It is only
141 * passed). If the server address wasn't resolved yet, it will be done.
151 struct fo_server **server);
154 /* To be used by async consumers of fo_resolve_service. If a server should be returned
156 * because the failover's server list might change with a subsequent call (see upstream
159 void fo_ref_server(TALLOC_CTX *ref_ctx, struct fo_server *server);
162 * Set feedback about 'server'. Caller should use this to indicate a problem
163 * with the server itself, not only with the service on that server. This
164 * should be used, for example, when the IP address of the server can't be
166 * share the same server.
168 void fo_set_server_status(struct fo_server *server,
173 * the server itself is working but the service is not. When status is set
174 * to PORT_WORKING, 'server' is also marked as an "active server" for its
176 * server will be preferred. This will hold as long as it is not marked as
179 void fo_set_port_status(struct fo_server *server,
183 * Instruct fail-over to try next server on the next connect attempt.
185 * but there is no authoritative information on whether active server is down.
189 void *fo_get_server_user_data(struct fo_server *server);
191 int fo_get_server_port(struct fo_server *server);
193 const char *fo_get_server_name(struct fo_server *server);
195 const char *fo_get_server_str_name(struct fo_server *server);
197 struct resolv_hostent *fo_get_server_hostent(struct fo_server *server);
199 bool fo_is_server_primary(struct fo_server *server);
201 time_t fo_get_server_hostname_last_change(struct fo_server *server);
213 bool fo_svc_has_server(struct fo_service *service, struct fo_server *server);