summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohann Latocha2011-03-29 17:36:02 +0200
committerJohann Latocha2011-03-29 17:36:02 +0200
commit4780b5ac8460bbc59215c348fcb3a275508d6331 (patch)
tree65d16430b2716ba68903ae5cab51b5228de31a5b
parentAutoconnection implemented: (diff)
downloadpvs-4780b5ac8460bbc59215c348fcb3a275508d6331.tar.gz
pvs-4780b5ac8460bbc59215c348fcb3a275508d6331.tar.xz
pvs-4780b5ac8460bbc59215c348fcb3a275508d6331.zip
Autoconnect bug fixed (validation)
-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