maintain db of peers

This commit is contained in:
jed
2012-06-13 08:20:08 -07:00
parent 253df289c3
commit f7b5753be1
9 changed files with 167 additions and 10 deletions

View File

@@ -102,6 +102,23 @@ DH* DH_der_load_hex(const std::string& strDer)
return DH_der_load(strBuf);
}
/*
void intIPtoStr(int ip,std::string& retStr)
{
unsigned char bytes[4];
bytes[0] = ip & 0xFF;
bytes[1] = (ip >> 8) & 0xFF;
bytes[2] = (ip >> 16) & 0xFF;
bytes[3] = (ip >> 24) & 0xFF;
retStr=str(boost::format("%d.%d.%d.%d") % bytes[3] % bytes[2] % bytes[1] % bytes[0] );
}
int strIPtoInt(std::string& ipStr)
{
}
*/
#ifdef WIN32
#define _WINSOCK_
#include <winsock2.h>