clean up GetAddresses().

This commit is contained in:
Christopher Jeffrey 2014-10-17 16:13:26 -07:00
parent f0ebef4e8c
commit 30621489db
1 changed files with 0 additions and 20 deletions

View File

@ -1614,26 +1614,6 @@ NAN_METHOD(GetAddresses) {
std::vector<CAddress> vAddr = addrman.GetAddr(); std::vector<CAddress> vAddr = addrman.GetAddr();
BOOST_FOREACH(const CAddress& addr, vAddr) { BOOST_FOREACH(const CAddress& addr, vAddr) {
// //unsigned char *ip = addr.ip; // [16]
//bool a = addr.IsIPv4();
//bool a = addr.IsIPv6();
////bool a = addr.IsTor();
//bool a = addr.IsLocal();
//bool a = addr.IsRoutable();
//bool a = addr.IsValid();
//bool a = addr.IsMulticast();
//enum Network n = addr.GetNetwork();
//std::string ip = addr.ToString();
//std::string ip = addr.ToStringIP();
//std::string ip = addr.ToStringIPPort();
//uint64_t hash = addr.GetHash();
//unsigned short port = addr.GetPort();
//std::vector<unsigned char> key = addr.GetKey();
// //unsigned short port = addr.port;
//uint64_t nServices = addr.nServices;
//unsigned int nTime = addr.nTime;
//int64_t nLastTry = addr.nLastTry;
Local<Object> obj = NanNew<Object>(); Local<Object> obj = NanNew<Object>();
char nServices[21] = {0}; char nServices[21] = {0};