|
pazpar2
1.11.3
|
#include "sel_thread.h"#include <stdlib.h>#include <assert.h>#include <sys/types.h>#include <yaz/log.h>#include <yaz/nmem.h>#include <yaz/tcpip.h>#include "session.h"#include "connection.h"#include "host.h"Go to the source code of this file.
Data Structures | |
| struct | work |
Macros | |
| #define | USE_THREADED_RESOLVER 1 |
Functions | |
| static void | perform_getaddrinfo (struct work *w) |
| static void | work_handler (void *vp) |
| void | iochan_handler (struct iochan *i, int event) |
| static void | getaddrinfo_start (iochan_man_t iochan_man) |
| int | host_getaddrinfo (struct host *host, iochan_man_t iochan_man) |
Variables | |
| static int | log_level = YLOG_LOG |
| static sel_thread_t | resolver_thread = 0 |
| #define USE_THREADED_RESOLVER 1 |
Definition at line 56 of file getaddrinfo.c.
|
static |
Definition at line 170 of file getaddrinfo.c.
References EVENT_INPUT, iochan_add(), iochan_create(), iochan_handler(), iochan_setdata, log_level, sel_thread_create(), and work_handler().
Referenced by host_getaddrinfo().
| int host_getaddrinfo | ( | struct host * | host, |
| iochan_man_t | iochan_man | ||
| ) |
Definition at line 193 of file getaddrinfo.c.
References host::error, work::error, getaddrinfo_start(), work::host, work::hostport, work::iochan_man, host::ipport, work::ipport, perform_getaddrinfo(), host::proxy, sel_thread_add(), and host::tproxy.
Referenced by create_host().
| void iochan_handler | ( | struct iochan * | i, |
| int | event | ||
| ) |
Definition at line 154 of file getaddrinfo.c.
References connect_resolver_host(), host::error, work::error, EVENT_INPUT, work::host, iochan_getdata, work::iochan_man, host::ipport, work::ipport, and sel_thread_result().
Referenced by getaddrinfo_start().
|
static |
Definition at line 69 of file getaddrinfo.c.
References work::error, error(), work::hostport, work::ipport, and log_level.
Referenced by host_getaddrinfo(), and work_handler().
|
static |
Definition at line 138 of file getaddrinfo.c.
References log_level, and perform_getaddrinfo().
Referenced by getaddrinfo_start().
|
static |
Definition at line 67 of file getaddrinfo.c.
Referenced by getaddrinfo_start(), perform_getaddrinfo(), and work_handler().
|
static |
Definition at line 168 of file getaddrinfo.c.
1.8.9.1