*/
sockaddr_in addr;
- char host[MAXBUF];
- int port;
-
/** File descriptor of the connection
*/
int fd;
*/
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
*/
bool SetHostAddress(char* host, int port);
public:
+ 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();
int GetState();
void SetState(int state);
char* GetServerIP();
+ std::string GetDescription();
+ void SetDescription(std::string desc);
int GetServerPort();
bool SetHostAndPort(char* host, int port);
+ void CloseConnection();
};