summaryrefslogtreecommitdiff
path: root/docs/man/man3/servers.cpp.3
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-30 05:23:22 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-30 05:23:22 +0000
commit956328e80741c88cdae6d98b07be4171c98f4e26 (patch)
treead61830f2cc82fa0cc2e20294ed3416f3abf12ae /docs/man/man3/servers.cpp.3
parent02c18fcb826e63ce7c654d44e9f0afe1eafa7a64 (diff)
Added docs for base: BoolSet
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1565 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'docs/man/man3/servers.cpp.3')
-rw-r--r--docs/man/man3/servers.cpp.374
1 files changed, 32 insertions, 42 deletions
diff --git a/docs/man/man3/servers.cpp.3 b/docs/man/man3/servers.cpp.3
index bedaea1c4..ff4d1a736 100644
--- a/docs/man/man3/servers.cpp.3
+++ b/docs/man/man3/servers.cpp.3
@@ -1,4 +1,4 @@
-.TH "servers.cpp" 3 "25 May 2005" "InspIRCd" \" -*- nroff -*-
+.TH "servers.cpp" 3 "30 May 2005" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
@@ -74,63 +74,53 @@ servers.cpp \-
.PP
.SS "bool already_have_sum (std::string sum)"
.PP
-Definition at line 411 of file servers.cpp.
+Definition at line 425 of file servers.cpp.
.PP
References xsums.
.PP
Referenced by serverrec::RecvPacket().
.PP
.nf
-412 {
-413 for (int i = 0; i < xsums.size(); i++)
-414 {
-415 if (xsums[i] == sum)
-416 {
-417 return true;
-418 }
-419 }
-420 if (xsums.size() >= 128)
-421 {
-422 xsums.pop_front();
-423 }
-424 xsums.push_back(sum);
-425 return false;
-426 }
+426 {
+427 for (int i = 0; i < xsums.size(); i++)
+428 {
+429 if (xsums[i] == sum)
+430 {
+431 return true;
+432 }
+433 }
+434 if (xsums.size() >= 128)
+435 {
+436 xsums.pop_front();
+437 }
+438 xsums.push_back(sum);
+439 return false;
+440 }
.fi
.SS "bool IsRoutable (std::string servername)"
.PP
Definition at line 256 of file servers.cpp.
.PP
-References serverrec::connectors, serverrec::FindHost(), ircd_connector::GetState(), me, and STATE_DISCONNECTED.
+References serverrec::connectors, me, and STATE_DISCONNECTED.
.PP
Referenced by serverrec::FlushWriteBuffers(), and serverrec::RecvPacket().
.PP
.nf
257 {
-258 for (int x = 0; x < 32; x++) if (me[x])
-259 {
-260 ircd_connector* cn = me[x]->FindHost(servername.c_str());
-261 if (cn)
-262 {
-263 if (cn->GetState() == STATE_DISCONNECTED)
-264 {
-265 for (int k = 0; k < me[x]->connectors.size(); k++)
-266 {
-267 for (int m = 0; m < me[x]->connectors[k].routes.size(); m++)
-268 {
-269 if (!strcasecmp(me[x]->connectors[k].routes[m].c_str(),servername.c_str()))
-270 {
-271 return true;
-272 }
-273 }
-274 }
-275 return false;
-276 }
-277 else return true;
-278 }
-279 }
-280 return false;
-281 }
+258 int c = 0;
+259 for (int x = 0; x < 32; x++)
+260 if (me[x])
+261 {
+262 for (int i = 0; i < me[x]->connectors.size(); i++)
+263 {
+264 if ((me[x]->connectors[i].GetServerName() == servername) && (me[x]->connectors[i].GetState() != STATE_DISCONNECTED))
+265 {
+266 c++;
+267 }
+268 }
+269 }
+270 return (c != 0);
+271 }
.fi
.SH "Variable Documentation"
.PP