summaryrefslogtreecommitdiff
path: root/include/connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/connection.h')
-rw-r--r--include/connection.h13
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();
};