output more descriptive socket error

This commit is contained in:
Stephen Birarda 2014-03-25 13:20:45 -07:00
parent 6a8637230f
commit 08bfc15b70

View file

@ -587,7 +587,7 @@ void NodeList::sendDomainServerCheckIn() {
qint64 code = writeDatagram(domainServerPacket, _domainInfo.getSockAddr(), _domainInfo.getConnectionSecret()); qint64 code = writeDatagram(domainServerPacket, _domainInfo.getSockAddr(), _domainInfo.getConnectionSecret());
qDebug() << "Code returned is" << code; qDebug() << "Code returned is" << code;
if (code == -1) { if (code == -1) {
qDebug() << "the socket error is" << _nodeSocket.error(); qDebug() << "the socket error is" << _nodeSocket.errorString();
} }
const int NUM_DOMAIN_SERVER_CHECKINS_PER_STUN_REQUEST = 5; const int NUM_DOMAIN_SERVER_CHECKINS_PER_STUN_REQUEST = 5;
static unsigned int numDomainCheckins = 0; static unsigned int numDomainCheckins = 0;