cout
This commit is contained in:
parent
96308f3237
commit
5737a1b95a
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ void MDNSLinkProvider::initializeMDNS()
|
||||||
delete m_serviceBrowser;
|
delete m_serviceBrowser;
|
||||||
m_serviceBrowser = new KDNSSD::ServiceBrowser(QStringLiteral("_kdeconnect._tcp"), true); //TODO: Check if autoresolve can be false to save bandwidth
|
m_serviceBrowser = new KDNSSD::ServiceBrowser(QStringLiteral("_kdeconnect._tcp"), true); //TODO: Check if autoresolve can be false to save bandwidth
|
||||||
connect(m_serviceBrowser, &KDNSSD::ServiceBrowser::serviceAdded, [this](KDNSSD::RemoteService::Ptr service) {
|
connect(m_serviceBrowser, &KDNSSD::ServiceBrowser::serviceAdded, [this](KDNSSD::RemoteService::Ptr service) {
|
||||||
std::cout << service->hostName().toStdString() << service->serviceName().toStdString() << std::endl;
|
std::cout << "Discovered" << service->hostName().toStdString() << service->serviceName().toStdString() << service->port() << std::endl;
|
||||||
QSslSocket* socket = new QSslSocket(this);
|
QSslSocket* socket = new QSslSocket(this);
|
||||||
connect(socket, &QAbstractSocket::connected, this, &MDNSLinkProvider::tcpSocketConnected);
|
connect(socket, &QAbstractSocket::connected, this, &MDNSLinkProvider::tcpSocketConnected);
|
||||||
connect(socket, QOverload<QAbstractSocket::SocketError>::of(&QAbstractSocket::error), this, &MDNSLinkProvider::connectError);
|
connect(socket, QOverload<QAbstractSocket::SocketError>::of(&QAbstractSocket::error), this, &MDNSLinkProvider::connectError);
|
||||||
|
|
Loading…
Reference in a new issue