mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 16:39:29 -05:00
Fix Clang Warning: Overloaded vf hide
warning: 'pqiConnectCbDummy::peerConnectRequest' hides overloaded virtual function [-Woverloaded-virtual] virtual void peerConnectRequest(const RsPeerId& id, ^
This commit is contained in:
parent
da4b168a04
commit
105840ab98
@ -61,14 +61,20 @@ void pqiConnectCbDummy::peerStatus(const RsPeerId& id, const pqiIpAddrSet &ad
|
|||||||
std::cerr << out << std::endl;
|
std::cerr << out << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
void pqiConnectCbDummy::peerConnectRequest(const RsPeerId& id,
|
void pqiConnectCbDummy::peerConnectRequest(const RsPeerId &id, const sockaddr_storage &raddr
|
||||||
const struct sockaddr_storage &raddr, uint32_t source)
|
, const sockaddr_storage &proxyaddr, const sockaddr_storage &srcaddr
|
||||||
|
, uint32_t source, uint32_t flags, uint32_t delay, uint32_t bandwidth)
|
||||||
{
|
{
|
||||||
std::cerr << "pqiConnectCbDummy::peerConnectRequest()";
|
std::cerr << "pqiConnectCbDummy::peerConnectRequest()";
|
||||||
std::cerr << " id: " << id;
|
std::cerr << " id: " << id;
|
||||||
std::cerr << " raddr: " << sockaddr_storage_tostring(raddr);
|
std::cerr << " raddr: " << sockaddr_storage_tostring(raddr);
|
||||||
|
std::cerr << " proxyaddr: " << sockaddr_storage_tostring(proxyaddr);
|
||||||
|
std::cerr << " srcaddr: " << sockaddr_storage_tostring(srcaddr);
|
||||||
std::cerr << " source: " << source;
|
std::cerr << " source: " << source;
|
||||||
std::cerr << std::endl;
|
std::cerr << " flags: " << flags;
|
||||||
|
std::cerr << " delay: " << delay;
|
||||||
|
std::cerr << " bandwidth: " << bandwidth;
|
||||||
|
std::cerr << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
void pqiMonitor::disconnectPeer(const RsPeerId &/*peer*/)
|
void pqiMonitor::disconnectPeer(const RsPeerId &/*peer*/)
|
||||||
|
@ -179,8 +179,9 @@ virtual ~pqiConnectCbDummy();
|
|||||||
virtual void peerStatus(const RsPeerId& id, const pqiIpAddrSet &addrs,
|
virtual void peerStatus(const RsPeerId& id, const pqiIpAddrSet &addrs,
|
||||||
uint32_t type, uint32_t mode, uint32_t source);
|
uint32_t type, uint32_t mode, uint32_t source);
|
||||||
|
|
||||||
virtual void peerConnectRequest(const RsPeerId& id,
|
virtual void peerConnectRequest(const RsPeerId& id, const struct sockaddr_storage &raddr,
|
||||||
const struct sockaddr_storage &raddr, uint32_t source);
|
const struct sockaddr_storage &proxyaddr, const struct sockaddr_storage &srcaddr,
|
||||||
|
uint32_t source, uint32_t flags, uint32_t delay, uint32_t bandwidth);
|
||||||
|
|
||||||
//virtual void stunStatus(std::string id, const struct sockaddr_storage &raddr, uint32_t type, uint32_t flags);
|
//virtual void stunStatus(std::string id, const struct sockaddr_storage &raddr, uint32_t type, uint32_t flags);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user