-
- /** When MakeOutboundConnection is called, these public members are
- * filled with the details passed to the function, for future
- * reference
- */
- char host[MAXBUF];
-
- /** When MakeOutboundConnection is called, these public members are
- * filled with the details passed to the function, for future
- * reference
- */
- 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;
-
-
- /** Create an outbound connection to a listening socket
- */
- bool MakeOutboundConnection(char* host, int port);
-
- /** Return the servername on this established connection
- */
- std::string GetServerName();
-
- /** Set the server name of this connection
- */
- void SetServerName(std::string serv);
-
- /** Get the file descriptor associated with this connection
- */
- int GetDescriptor();
-
- /** Set the file descriptor for this connection
- */
- void SetDescriptor(int fd);
-
- /** Get the state flags for this connection
- */
- int GetState();
-
- /** Set the state flags for this connection
- */
- void SetState(int state);
-
- /** Get the ip address (not servername) associated with this connection
- */
- char* GetServerIP();
-
- /** Get the server description of this connection