int statsConnects;
int statsSent;
int statsRecv;
+ int BoundPortCount;
serverstats()
{
statsAccept = statsRefused = statsUnknown = 0;
statsCollisions = statsDns = statsDnsGood = 0;
statsDnsBad = statsConnects = statsSent = statsRecv = 0;
+ BoundPortCount = 0;
}
};
whowas_hash whowas;
command_table cmdlist;
servernamelist servernames;
-int BoundPortCount = 0;
char lowermap[255];
void AddServerName(std::string servername)
SetupCommandTable();
AddServerName(Config->ServerName);
CheckDie();
- BoundPortCount = BindPorts();
+ stats->BoundPortCount = BindPorts();
printf("\n");
if (!Config->nofork)
/* Add the listening sockets used for client inbound connections
* to the socket engine
*/
- for (int count = 0; count < BoundPortCount; count++)
+ for (int count = 0; count < stats->BoundPortCount; count++)
SE->AddFd(openSockfd[count],true,X_LISTEN);
WritePID(Config->PID);