Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
// If this is set, we proxy normal HTTP requests
static struct sockaddr_in *proxy_addr = 0;
static char proxy_url[256] = "";
// If this is set, we proxy normal HTTP requests
static struct sockaddr_in *proxy_addr = 0;
static char proxy_url[256] = "";
// We will add EVENT_OUTPUT below
p->iochan = iochan_create(sock, proxy_io, EVENT_INPUT);
iochan_setdata(p->iochan, p);
// We will add EVENT_OUTPUT below
p->iochan = iochan_create(sock, proxy_io, EVENT_INPUT);
iochan_setdata(p->iochan, p);
yaz_log(YLOG_FATAL|YLOG_ERRNO, "listen");
c = iochan_create(l, http_accept, EVENT_INPUT | EVENT_EXCEPT);
yaz_log(YLOG_FATAL|YLOG_ERRNO, "listen");
c = iochan_create(l, http_accept, EVENT_INPUT | EVENT_EXCEPT);