#define STATE_NOAUTH_OUTBOUND 4
#define STATE_SERVICES 5
+std::string CreateSum();
+
/** Each connection has one or more of these
* each represents ONE outbound connection to another ircd
* so each inbound has multiple outbounds. A listening socket
/** State. STATE_NOAUTH_INBOUND, STATE_NOAUTH_OUTBOUND
* STATE_SYNC, STATE_DISCONNECTED, STATE_CONNECTED
*/
- int state;
+ char state;
/** PRIVATE function to set the host address and port to connect to
*/
/** Hostname of connection. Not used if this is a serverrec
*/
- char host[256];
-
- /** IP of connection. Reserved for future use.
- */
- char ip[32];
+ char host[160];
- /** Inbuf of connection. Only used for userrec
+ /** IP of connection.
*/
- char inbuf[MAXBUF];
+ char ip[16];
/** Stats counter for bytes inbound
*/
/** Used by userrec to indicate the registration status of the connection
*/
- int registered;
-
- /** Reserved for future use
- */
- short int state;
+ char registered;
/** Time the connection was last pinged
*/
*/
time_t nping;
- /** Unused, will be removed in a future alpha/beta
- */
- char internal_addr[MAXBUF];
-
- /** Unused, will be removed in a future alpha/beta
- */
- int internal_port;
-
/** With a serverrec, this is a list of all established server connections.
* With a userrec this is unused.
*/
* If no data is available this function returns false.
* This function will automatically close broken links and reroute pathways, generating split messages on the network.
*/
- bool RecvPacket(std::deque<std::string> &messages, char* host);
+ bool RecvPacket(std::deque<std::string> &messages, char* host, std::deque<std::string> &sums);
/** Find the ircd_connector oject related to a certain servername given in 'host'
*/