/** the list of connected clients **/
static struct list_head clients;
static int listen_fd = -1;
-static struct sender *self;
/** Maximal number of bytes in a chunk queue. */
#define DCCP_MAX_PENDING_BYTES 40000
s->client_cmds[SENDER_ALLOW] = NULL;
s->client_cmds[SENDER_ADD] = NULL;
s->client_cmds[SENDER_DELETE] = NULL;
- self = s;
ret = dccp_open();
if (ret < 0)
PARA_ERROR_LOG("%s\n", para_strerror(-ret));
};
static int listen_fd = -1, numclients;
-static struct sender *self;
static void http_shutdown_client(struct http_client *hc, const char *msg)
s->client_cmds[SENDER_ALLOW] = http_com_allow;
s->client_cmds[SENDER_ADD] = NULL;
s->client_cmds[SENDER_DELETE] = NULL;
- self = s;
acl_init(&http_acl, conf.http_access_arg, conf.http_access_given);
if (!conf.http_no_autostart_given)
http_open(); /* ignore errors */