From 4e9f3d169285127e60dc9e0437925c90600bfe05 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 25 May 2005 22:01:10 +0000 Subject: Added parameters git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1522 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/servers_8cpp.html | 172 ++++++++++++++++++++++++++++++++------ 1 file changed, 145 insertions(+), 27 deletions(-) (limited to 'docs/module-doc/servers_8cpp.html') diff --git a/docs/module-doc/servers_8cpp.html b/docs/module-doc/servers_8cpp.html index c1a2a0c12..18a72eb00 100644 --- a/docs/module-doc/servers_8cpp.html +++ b/docs/module-doc/servers_8cpp.html @@ -34,18 +34,24 @@ Include dependency graph for servers.cpp:

Go to the source code of this file. - + + + - + + + + +

Functions

bool already_have_sum (std::string sum)
bool IsRoutable (std::string servername)
bool already_have_sum (std::string sum)

Variables

time_t TIME
int MaxConn
std::deque< std::string > xsums
serverrecme [32]
bool has_been_netsplit
std::deque< std::string > xsums

Function Documentation

-

+

+ +
@@ -73,31 +79,119 @@ Include dependency graph for servers.cpp:

350 of file servers.cpp. +Definition at line 411 of file servers.cpp.

-References xsums. +References xsums.

-Referenced by serverrec::RecvPacket(). +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 }
+
00412 {
+00413         for (int i = 0; i < xsums.size(); i++)
+00414         {
+00415                 if (xsums[i] == sum)
+00416                 {
+00417                         return true;
+00418                 }
+00419         }
+00420         if (xsums.size() >= 128)
+00421         {
+00422                 xsums.pop_front();
+00423         }
+00424         xsums.push_back(sum);
+00425         return false;
+00426 }
+
+

+ + + + +
+ + + + + + + + + + +
bool IsRoutable std::string  servername  ) 
+
+ + + +
+   + + +

+ +

+Definition at line 256 of file servers.cpp. +

+References serverrec::connectors, serverrec::FindHost(), ircd_connector::GetState(), me, and STATE_DISCONNECTED. +

+Referenced by serverrec::FlushWriteBuffers(), and serverrec::RecvPacket(). +

+

00257 {
+00258         for (int x = 0; x < 32; x++) if (me[x])
+00259         {
+00260                 ircd_connector* cn = me[x]->FindHost(servername.c_str());
+00261                 if (cn)
+00262                 {
+00263                         if (cn->GetState() == STATE_DISCONNECTED)
+00264                         {
+00265                                 for (int k = 0; k < me[x]->connectors.size(); k++)
+00266                                 {
+00267                                         for (int m = 0; m < me[x]->connectors[k].routes.size(); m++)
+00268                                         {
+00269                                                 if (!strcasecmp(me[x]->connectors[k].routes[m].c_str(),servername.c_str()))
+00270                                                 {
+00271                                                         return true;
+00272                                                 }
+00273                                         }
+00274                                 }
+00275                                 return false;
+00276                         }
+00277                         else return true;
+00278                 }
+00279         }
+00280         return false;
+00281 }
 


Variable Documentation

+

+ + + + +
+ + +
bool has_been_netsplit +
+
+ + + + + +
+   + + +

+ +

+Definition at line 42 of file servers.cpp. +

+Referenced by serverrec::FlushWriteBuffers(), and serverrec::RecvPacket().

@@ -121,7 +215,31 @@ Referenced by serverrec::Re

Definition at line 38 of file servers.cpp.

-Referenced by serverrec::CreateListener(). +Referenced by serverrec::CreateListener(). +

+
+

+ + + + +
+ + +
serverrec* me[32] +
+
+ + + +
+   + + +

+ +

+Definition at line 40 of file servers.cpp.

@@ -148,13 +266,13 @@ Referenced by serverrec::Cr Definition at line 37 of file servers.cpp. -

+

@@ -169,12 +287,12 @@ Definition at line 37 o

-Definition at line 40 of file servers.cpp. +Definition at line 44 of file servers.cpp.

-Referenced by already_have_sum(). +Referenced by already_have_sum().

-
std::deque<std::string> xsums + std::deque<std::string> xsums
-


Generated on Tue May 24 02:31:15 2005 for InspIRCd by +
Generated on Wed May 25 21:42:46 2005 for InspIRCd by doxygen 1.3.3
-- cgit v1.2.3