#include "citadel_dirs.h"
#include "threads.h"
#include "context.h"
-#include "netconfig.h"
#include "ctdl_module.h"
struct CitContext networker_client_CC;
{
AsyncNetworker *NW = (AsyncNetworker *)IO->Data;
- network_talking_to(SKEY(NW->node), NTT_REMOVE);
+ CtdlNetworkTalkingTo(SKEY(NW->node), NTT_REMOVE);
DeleteNetworker(IO->Data);
return eAbort;
void RunNetworker(AsyncNetworker *NW)
{
NW->n = NetworkerCount++;
- network_talking_to(SKEY(NW->node), NTT_ADD);
+ CtdlNetworkTalkingTo(SKEY(NW->node), NTT_ADD);
syslog(LOG_DEBUG, "NW[%s][%ld]: polling\n", ChrPtr(NW->node), NW->n);
ParseURL(&NW->IO.ConnectMe, NW->Url, 504);
/* Use the string tokenizer to grab one line at a time */
if(server_shutting_down)
return;/* TODO free stuff*/
- NodeConf *pNode = (NodeConf*) vCfg;
+ CtdlNodeConf *pNode = (CtdlNodeConf*) vCfg;
poll = 0;
NW = (AsyncNetworker*)malloc(sizeof(AsyncNetworker));
memset(NW, 0, sizeof(AsyncNetworker));
ChrPtr(NW->secret),
ChrPtr(NW->host),
ChrPtr(NW->port));
- if (!network_talking_to(SKEY(NW->node), NTT_CHECK))
+ if (!CtdlNetworkTalkingTo(SKEY(NW->node), NTT_CHECK))
{
RunNetworker(NW);
continue;
);
}
- working_ignetcfg = load_ignetcfg();
+ working_ignetcfg = CtdlLoadIgNetCfg();
/*
* Poll other Citadel nodes. Maybe. If "full_processing" is set
* then we poll everyone. Otherwise we only poll nodes we have stuff