summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/net/pvsServiceDiscovery.h2
-rw-r--r--src/pvs.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/net/pvsServiceDiscovery.h b/src/net/pvsServiceDiscovery.h
index 08a38b8..58e0ab6 100644
--- a/src/net/pvsServiceDiscovery.h
+++ b/src/net/pvsServiceDiscovery.h
@@ -33,6 +33,7 @@ public:
void connectToSession(QString name, QString passwd);
bool nameExists(QString name);
QStringList getAllServers();
+ void handleDiscovery(QHostAddress host, int port, QByteArray hash);
protected:
void timerEvent(QTimerEvent *event);
@@ -42,7 +43,6 @@ private Q_SLOTS:
void sendServerToGui(PVSDiscoveredServer*);
private:
- void handleDiscovery(QHostAddress host, int port, QByteArray hash);
void setTimerInterval();
QUdpSocket _sock;
QString _sessionName;
diff --git a/src/pvs.cpp b/src/pvs.cpp
index 296c8a4..d987164 100644
--- a/src/pvs.cpp
+++ b/src/pvs.cpp
@@ -102,6 +102,7 @@ PVS::PVS() :
{
qDebug() << "Autoconnecting to " << host.toString();
PVSDiscoveredServer* server = new PVSDiscoveredServer(this, host, port, fingerprint, name);
+ _sdClient->handleDiscovery(host, port, fingerprint);
connectToHost(server, "");
}
else