Send doesn't need the port #

pull/2/head
Tom Early 3 years ago
parent 312c8f5a2b
commit 42120f849f

@ -88,6 +88,7 @@ bool CInterlinkMap::LoadFromFile(const std::string &filename)
port = 10017; port = 10017;
} }
} }
std::cout << "USING PORT " << port << std::endl;
m_InterlinkMap[token[0]] = CInterlinkMapItem(token[1], token[2], (uint16_t)port); m_InterlinkMap[token[0]] = CInterlinkMapItem(token[1], token[2], (uint16_t)port);
} }
#ifndef NO_DHT #ifndef NO_DHT

@ -348,7 +348,7 @@ void CURFProtocol::HandlePeerLinks(void)
#endif #endif
// send connect packet to re-initiate peer link // send connect packet to re-initiate peer link
EncodeConnectPacket(&buffer, it->second.GetModules().c_str()); EncodeConnectPacket(&buffer, it->second.GetModules().c_str());
Send(buffer, it->second.GetIp(), it->second.GetPort()); Send(buffer, it->second.GetIp());
std::cout << "Sent connect packet to URF peer " << cs << " @ " << it->second.GetIp() << " for modules " << it->second.GetModules() << " to port " << it->second.GetPort() << std::endl; std::cout << "Sent connect packet to URF peer " << cs << " @ " << it->second.GetIp() << " for modules " << it->second.GetModules() << " to port " << it->second.GetPort() << std::endl;
#ifndef NO_DHT #ifndef NO_DHT
} }

Loading…
Cancel
Save

Powered by TurnKey Linux.