MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / setUdpLocalPort

Method setUdpLocalPort

app/src/IO/Drivers/Network.cpp:393–401  ·  view source on GitHub ↗

* @brief Changes the UDP socket's local port number. */

Source from the content-addressed store, hash-verified

391 * @brief Changes the UDP socket's local port number.
392 */
393void IO::Drivers::Network::setUdpLocalPort(const quint16 port)
394{
395 if (m_udpLocalPort == port)
396 return;
397
398 m_udpLocalPort = port;
399 m_settings.setValue("NetworkDriver/udpLocalPort", port);
400 Q_EMIT portChanged();
401}
402
403/**
404 * @brief Changes the UDP socket's remote port number.

Callers 1

setupUdpConnectionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected