|
pazpar2
1.11.3
|
#include <assert.h>#include <sys/types.h>#include <sys/stat.h>#include <yaz/log.h>#include <yaz/nmem.h>#include <yaz/matchstr.h>#include "ppmutex.h"#include "session.h"#include "host.h"Go to the source code of this file.
Data Structures | |
| struct | database_hosts |
Functions | |
| static struct host * | create_host (const char *proxy, const char *tproxy, iochan_man_t iochan_man) |
| struct host * | find_host (database_hosts_t hosts, const char *url, const char *proxy, int port, iochan_man_t iochan_man) |
| database_hosts_t | database_hosts_create (void) |
| void | database_hosts_destroy (database_hosts_t *pp) |
|
static |
Definition at line 43 of file host.c.
References host::cond_ready, host::connections, host::error, host_getaddrinfo(), host::ipport, host::mutex, pazpar2_mutex_create(), host::proxy, and host::tproxy.
Referenced by find_host().
| database_hosts_t database_hosts_create | ( | void | ) |
Definition at line 132 of file host.c.
References database_hosts::hosts, database_hosts::mutex, and pazpar2_mutex_create().
Referenced by config_create().
| void database_hosts_destroy | ( | database_hosts_t * | pp | ) |
Definition at line 141 of file host.c.
References host::cond_ready, host::ipport, host::mutex, and host::next.
Referenced by config_destroy().
| struct host* find_host | ( | database_hosts_t | hosts, |
| const char * | url, | ||
| const char * | proxy, | ||
| int | port, | ||
| iochan_man_t | iochan_man | ||
| ) |
Definition at line 79 of file host.c.
References create_host(), host::error, database_hosts::hosts, database_hosts::mutex, host::next, host::proxy, and host::tproxy.
Referenced by client_prep_connection().
1.8.9.1