- 09C7F4CC1247B2EC45FFDAE139FE2574DAE0EB4CD40D0E48CFD5DE49033AB1F4242E564020E4AF5418B12E7A78430C87D58B1D4829C837B9DAE47D1C1CD32382
+ 8FAEDDC8CA1B84E53EDEE8F3325EDD7DB8B74E063F4D338AE7E280C02DCE96E8156157A6802FEAB5B7F695981E6F8A42AB5F44B9DF3093A4D7C4F30F9B029912
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