Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

servers.cpp File Reference

#include "inspircd_config.h"
#include "servers.h"
#include "inspircd.h"
#include <unistd.h>
#include <fcntl.h>
#include <poll.h>
#include <sys/errno.h>
#include <sys/ioctl.h>
#include <sys/utsname.h>
#include <vector>
#include <string>
#include <deque>
#include <sstream>
#include <map>
#include "inspstring.h"
#include "helperfuncs.h"
#include "connection.h"

Include dependency graph for servers.cpp:

Include dependency graph

Go to the source code of this file.

Functions

bool already_have_sum (std::string sum)

Variables

time_t TIME
int MaxConn
std::deque< std::string > xsums


Function Documentation

bool already_have_sum std::string  sum  ) 
 

Definition at line 350 of file servers.cpp.

References xsums.

Referenced by serverrec::RecvPacket().

00351 {
00352         for (int i = 0; i < xsums.size(); i++)
00353         {
00354                 if (xsums[i] == sum)
00355                 {
00356                         return true;
00357                 }
00358         }
00359         if (xsums.size() >= 128)
00360         {
00361                 xsums.pop_front();
00362         }
00363         xsums.push_back(sum);
00364         return false;
00365 }


Variable Documentation

int MaxConn
 

Definition at line 38 of file servers.cpp.

Referenced by serverrec::CreateListener().

time_t TIME
 

Definition at line 37 of file servers.cpp.

std::deque<std::string> xsums
 

Definition at line 40 of file servers.cpp.

Referenced by already_have_sum().


Generated on Tue May 24 02:31:15 2005 for InspIRCd by doxygen 1.3.3