summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/remoteclient.cpp
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@theqtcompany.com>2015-02-10 16:21:26 +0100
committerKai Koehne <kai.koehne@theqtcompany.com>2015-02-20 10:22:28 +0000
commitd6bca86cad962a0078c2a8111133cff123f1ba0a (patch)
tree0f8cf9863c04675c24efe2bf6b0aa023a56a0f4c /src/libs/installer/remoteclient.cpp
parent0ff36e52afb503a99c8fded093d25321a46b3d19 (diff)
Use local sockets for client-server communication
Change-Id: I12bfef671ab31ae9fb8c4bb02776517e7f434d27 Task-number: QTIFW-228 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
Diffstat (limited to 'src/libs/installer/remoteclient.cpp')
-rw-r--r--src/libs/installer/remoteclient.cpp16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/libs/installer/remoteclient.cpp b/src/libs/installer/remoteclient.cpp
index 22a6946df..12cec0efa 100644
--- a/src/libs/installer/remoteclient.cpp
+++ b/src/libs/installer/remoteclient.cpp
@@ -52,16 +52,10 @@ RemoteClient &RemoteClient::instance()
return instance;
}
-quint16 RemoteClient::port() const
+QString RemoteClient::socketName() const
{
Q_D(const RemoteClient);
- return d->m_port;
-}
-
-QString RemoteClient::address() const
-{
- Q_D(const RemoteClient);
- return d->m_address;
+ return d->m_socketName;
}
QString RemoteClient::authorizationKey() const
@@ -71,14 +65,14 @@ QString RemoteClient::authorizationKey() const
}
/*!
- Initializes the client with \a port, the port to write to, with \a key, the key the client
+ Initializes the client with \a socketName, with the \a key the client
sends to authenticate with the server, \a mode and \a startAs.
*/
-void RemoteClient::init(quint16 port, const QString &key, Protocol::Mode mode,
+void RemoteClient::init(const QString &socketName, const QString &key, Protocol::Mode mode,
Protocol::StartAs startAs)
{
Q_D(RemoteClient);
- d->init(port, key, mode, startAs);
+ d->init(socketName, key, mode, startAs);
}
void RemoteClient::shutdown()