summaryrefslogtreecommitdiff
path: root/docs/man/man3/servers.cpp.3
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-24 02:34:33 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-24 02:34:33 +0000
commit66f0cd6469d2643858c2fcd14726d362696bd68d (patch)
tree8c3743570ae0a16431fb8f6713023c73e21f1e2f /docs/man/man3/servers.cpp.3
parent609873a2abf96a67b29eec1b37cc81c31857376b (diff)
New methods, new docs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1484 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'docs/man/man3/servers.cpp.3')
-rw-r--r--docs/man/man3/servers.cpp.376
1 files changed, 73 insertions, 3 deletions
diff --git a/docs/man/man3/servers.cpp.3 b/docs/man/man3/servers.cpp.3
index af036f7c6..02500d311 100644
--- a/docs/man/man3/servers.cpp.3
+++ b/docs/man/man3/servers.cpp.3
@@ -1,4 +1,4 @@
-.TH "servers.cpp" 3 "15 May 2005" "InspIRCd" \" -*- nroff -*-
+.TH "servers.cpp" 3 "24 May 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
@@ -12,7 +12,25 @@ servers.cpp \-
.br
\fC#include 'inspircd.h'\fP
.br
-\fC#include <stdio.h>\fP
+\fC#include <unistd.h>\fP
+.br
+\fC#include <fcntl.h>\fP
+.br
+\fC#include <poll.h>\fP
+.br
+\fC#include <sys/errno.h>\fP
+.br
+\fC#include <sys/ioctl.h>\fP
+.br
+\fC#include <sys/utsname.h>\fP
+.br
+\fC#include <vector>\fP
+.br
+\fC#include <string>\fP
+.br
+\fC#include <deque>\fP
+.br
+\fC#include <sstream>\fP
.br
\fC#include <map>\fP
.br
@@ -20,19 +38,71 @@ servers.cpp \-
.br
\fC#include 'helperfuncs.h'\fP
.br
+\fC#include 'connection.h'\fP
+.br
+
+.SS "Functions"
+.in +1c
+.ti -1c
+.RI "bool \fBalready_have_sum\fP (std::string sum)"
+.br
+.in -1c
.SS "Variables"
.in +1c
.ti -1c
.RI "time_t \fBTIME\fP"
.br
+.ti -1c
+.RI "int \fBMaxConn\fP"
+.br
+.ti -1c
+.RI "std::deque< std::string > \fBxsums\fP"
+.br
.in -1c
+.SH "Function Documentation"
+.PP
+.SS "bool already_have_sum (std::string sum)"
+.PP
+Definition at line 350 of file servers.cpp.
+.PP
+References xsums.
+.PP
+Referenced by serverrec::RecvPacket().
+.PP
+.nf
+351 {
+352 for (int i = 0; i < xsums.size(); i++)
+353 {
+354 if (xsums[i] == sum)
+355 {
+356 return true;
+357 }
+358 }
+359 if (xsums.size() >= 128)
+360 {
+361 xsums.pop_front();
+362 }
+363 xsums.push_back(sum);
+364 return false;
+365 }
+.fi
.SH "Variable Documentation"
.PP
+.SS "int \fBMaxConn\fP"
+.PP
+Definition at line 38 of file servers.cpp.
+.PP
+Referenced by serverrec::CreateListener().
.SS "time_t \fBTIME\fP"
.PP
-Definition at line 25 of file servers.cpp.
+Definition at line 37 of file servers.cpp.
+.SS "std::deque<std::string> \fBxsums\fP"
+.PP
+Definition at line 40 of file servers.cpp.
+.PP
+Referenced by already_have_sum().
.SH "Author"
.PP
Generated automatically by Doxygen for InspIRCd from the source code.