diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-16 11:20:45 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-16 11:20:45 +0000 |
commit | 99c1d61eca2bdf19939a72ad00124c1f7e58845a (patch) | |
tree | a0d596692eca0654d16fc134dcf1ec16eb77bcde /include | |
parent | ac60f15b03d248318e9378ce2abfb7c9a1663dd4 (diff) |
Added various routing tokens (such as 'R' redirect message)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@610 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/connection.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/connection.h b/include/connection.h index 954cc919b..3316bd6c0 100644 --- a/include/connection.h +++ b/include/connection.h @@ -48,12 +48,6 @@ class ircd_connector : public classbase */ std::string description; - /** Server names of servers that this server is linked to - * So for A->B->C, if this was the record for B it would contain A and C - * whilever both servers are connected to B. - */ - std::vector<std::string> routes; - /** State. STATE_NOAUTH_INBOUND, STATE_NOAUTH_OUTBOUND * STATE_SYNC, STATE_DISCONNECTED, STATE_CONNECTED */ @@ -65,6 +59,12 @@ class ircd_connector : public classbase char host[MAXBUF]; int port; + /** Server names of servers that this server is linked to + * So for A->B->C, if this was the record for B it would contain A and C + * whilever both servers are connected to B. + */ + std::vector<std::string> routes; + bool MakeOutboundConnection(char* host, int port); std::string GetServerName(); @@ -78,6 +78,7 @@ class ircd_connector : public classbase void SetDescription(std::string desc); int GetServerPort(); bool SetHostAndPort(char* host, int port); + void CloseConnection(); }; |