set the default hostname for GVRInterface client

This commit is contained in:
Stephen Birarda 2014-11-18 13:43:49 -08:00
parent 9f4e1c8a27
commit a8cc565baf
2 changed files with 2 additions and 3 deletions
gvr-interface/src
libraries/networking/src

View file

@ -20,6 +20,8 @@ GVRInterface::GVRInterface(int argc, char* argv[]) :
connect(&nodeList->getNodeSocket(), &QUdpSocket::readyRead, this, &GVRInterface::processDatagrams);
nodeList->getDomainHandler().setHostname(DEFAULT_DOMAIN_HOSTNAME);
QTimer* domainServerTimer = new QTimer(this);
connect(domainServerTimer, &QTimer::timeout, nodeList, &NodeList::sendDomainServerCheckIn);
domainServerTimer->start(DOMAIN_SERVER_CHECK_IN_MSECS);

View file

@ -268,7 +268,6 @@ bool NodeList::processSTUNResponse(const QByteArray& packet) {
}
void NodeList::sendDomainServerCheckIn() {
qDebug() << "SEND DOMAIN SERVER CHECK IN";
if (_publicSockAddr.isNull() && !_hasCompletedInitialSTUNFailure) {
// we don't know our public socket and we need to send it to the domain server
// send a STUN request to figure it out
@ -277,8 +276,6 @@ void NodeList::sendDomainServerCheckIn() {
handleICEConnectionToDomainServer();
} else if (!_domainHandler.getIP().isNull()) {
qDebug() << "SENDING A CHECK IN TO" << _domainHandler.getIP().toString();
bool isUsingDTLS = false;
PacketType domainPacketType = !_domainHandler.isConnected()