- E76EC1350E05C0FEF1798A50903586ACE4737FAA6DB134094A88A23A96E2A54D8E135A840B822EF136D336B035B3B03B7DED83A99267C892663B15D11AD00720
+ E5274FE2FF8AA6840CE5BE2E7797766DC4A70A19C2E08954BBFD9CFFF4AD9E27614606079A4CE7FC5AE150DFAF2906BEE118B543D889710DA78475BD12F24C56
bitcoin/src/protocol.cpp
(5 . 10)(5 . 8)
479
480 #include "protocol.h"
481 #include "util.h"
482 #include <arpa/inet.h>
483
484 #ifndef WIN32
485 # include <arpa/inet.h>
486 #endif
487
488 // Prototypes from net.h, but that header (currently) stinks, can't #include it without breaking things
489 bool Lookup(const char *pszName, std::vector<CAddress>& vaddr, int nServices, int nMaxSolutions, bool fAllowLookup = false, int portDefault = 0, bool fAllowPort = false);
(165 . 11)(163 . 7)
491 ss.reserve(18);
492 ss << FLATDATA(pchReserved) << ip << port;
493
494 #if defined(_MSC_VER) && _MSC_VER < 1300
495 return std::vector<unsigned char>((unsigned char*)&ss.begin()[0], (unsigned char*)&ss.end()[0]);
496 #else
497 return std::vector<unsigned char>(ss.begin(), ss.end());
498 #endif
499 }
500
501 struct sockaddr_in CAddress::GetSockAddr() const