refs #308 Instead of enumerating hosts, use the well known host url

Since we are hosting in the same process, we can get the URL from the host
object and pass it to new clients.
This commit is contained in:
Roland Winklmeier
2014-09-02 20:32:44 +02:00
parent 7a02aff7b9
commit 53b257fa3d
7 changed files with 90 additions and 23 deletions

View File

@@ -112,6 +112,7 @@ namespace BlackSimPlugin
// Create a new client thread, set update frequency to 25 ms and start it
QThread *clientThread = new QThread(this);
CFs9Client *client = new CFs9Client(callsign.toQString(), CTime(25, CTimeUnit::ms()));
client->setHostAddress(m_fs9Host->getHostAddress());
client->setPlayerUserId(m_fs9Host->getPlayerUserId());
client->moveToThread(clientThread);