mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 16:38:27 +02:00
remove NetworkPeer dtor debug, fix ICE socket
This commit is contained in:
parent
493a9da43e
commit
265e0f3da6
3 changed files with 1 additions and 7 deletions
|
@ -840,7 +840,7 @@ void LimitedNodeList::sendPacketToIceServer(PacketType packetType, const HifiSoc
|
||||||
<< uuidStringWithoutCurlyBraces(peerID);
|
<< uuidStringWithoutCurlyBraces(peerID);
|
||||||
}
|
}
|
||||||
|
|
||||||
writeUnverifiedDatagram(iceRequestByteArray, HifiSockAddr("127.0.0.1", ICE_SERVER_DEFAULT_PORT));
|
writeUnverifiedDatagram(iceRequestByteArray, iceServerSockAddr);
|
||||||
}
|
}
|
||||||
|
|
||||||
void LimitedNodeList::putLocalPortIntoSharedMemory(const QString key, QObject* parent, quint16 localPort) {
|
void LimitedNodeList::putLocalPortIntoSharedMemory(const QString key, QObject* parent, quint16 localPort) {
|
||||||
|
|
|
@ -49,10 +49,6 @@ NetworkPeer::NetworkPeer(const QUuid& uuid, const HifiSockAddr& publicSocket, co
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
NetworkPeer::~NetworkPeer() {
|
|
||||||
qDebug() << "Removing network peer with ID" << _uuid;
|
|
||||||
}
|
|
||||||
|
|
||||||
void NetworkPeer::setPublicSocket(const HifiSockAddr& publicSocket) {
|
void NetworkPeer::setPublicSocket(const HifiSockAddr& publicSocket) {
|
||||||
if (publicSocket != _publicSocket) {
|
if (publicSocket != _publicSocket) {
|
||||||
if (_activeSocket == &_publicSocket) {
|
if (_activeSocket == &_publicSocket) {
|
||||||
|
|
|
@ -31,8 +31,6 @@ public:
|
||||||
NetworkPeer(QObject* parent = 0);
|
NetworkPeer(QObject* parent = 0);
|
||||||
NetworkPeer(const QUuid& uuid, const HifiSockAddr& publicSocket, const HifiSockAddr& localSocket, QObject* parent = 0);
|
NetworkPeer(const QUuid& uuid, const HifiSockAddr& publicSocket, const HifiSockAddr& localSocket, QObject* parent = 0);
|
||||||
|
|
||||||
~NetworkPeer();
|
|
||||||
|
|
||||||
bool isNull() const { return _uuid.isNull(); }
|
bool isNull() const { return _uuid.isNull(); }
|
||||||
bool hasSockets() const { return !_localSocket.isNull() && !_publicSocket.isNull(); }
|
bool hasSockets() const { return !_localSocket.isNull() && !_publicSocket.isNull(); }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue