MCPcopy Create free account
hub / github.com/KDAB/GammaRay / broadcast

Method broadcast

core/remote/server.cpp:323–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323void Server::broadcast()
324{
325 if (!Server::instance()->isListening())
326 return;
327
328 QByteArray datagram;
329 QDataStream stream(&datagram, QIODevice::WriteOnly);
330 stream << Protocol::broadcastFormatVersion();
331 stream << Protocol::version();
332 stream << externalAddress();
333 stream << label(); // TODO integrate hostname
334 m_serverDevice->broadcast(datagram);
335}
336
337QUrl Server::externalAddress() const
338{

Callers

nothing calls this directly

Calls 3

broadcastFormatVersionFunction · 0.85
versionFunction · 0.85
isListeningMethod · 0.45

Tested by

no test coverage detected