summaryrefslogtreecommitdiffstats
path: root/src/server/altservers.h
blob: de7643c690a77f82bc472da28c942a8d20f5fbe3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _ALTSERVERS_H_
#define _ALTSERVERS_H_

#include "globals.h"

void altservers_init();

int altservers_load();

int altservers_add(dnbd3_host_t *host, const char *comment, const int isPrivate, const int isClientOnly);

void altservers_findUplink(dnbd3_connection_t *uplink);

int altservers_getMatching(dnbd3_host_t *host, dnbd3_server_entry_t *output, int size);

int altservers_get(dnbd3_host_t *output, int size);

int altservers_netCloseness(dnbd3_host_t *host1, dnbd3_host_t *host2);

void altservers_serverFailed(const dnbd3_host_t * const host);

#endif /* UPLINK_CONNECTOR_H_ */