pazpar2  1.11.3
Data Structures | Macros | Functions | Variables
getaddrinfo.c File Reference
#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
 

Macro Definition Documentation

#define USE_THREADED_RESOLVER   1

Definition at line 56 of file getaddrinfo.c.

Function Documentation

static void getaddrinfo_start ( iochan_man_t  iochan_man)
static
int host_getaddrinfo ( struct host *  host,
iochan_man_t  iochan_man 
)
void iochan_handler ( struct iochan *  i,
int  event 
)
static void perform_getaddrinfo ( struct work *  w)
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 void work_handler ( void *  vp)
static

Definition at line 138 of file getaddrinfo.c.

References log_level, and perform_getaddrinfo().

Referenced by getaddrinfo_start().

Variable Documentation

int log_level = YLOG_LOG
static

Definition at line 67 of file getaddrinfo.c.

Referenced by getaddrinfo_start(), perform_getaddrinfo(), and work_handler().

sel_thread_t resolver_thread = 0
static

Definition at line 168 of file getaddrinfo.c.