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

Method setTcpPort

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

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

Source from the content-addressed store, hash-verified

378 * @brief Changes the TCP socket's port number.
379 */
380void IO::Drivers::Network::setTcpPort(const quint16 port)
381{
382 if (m_tcpPort == port)
383 return;
384
385 m_tcpPort = port;
386 m_settings.setValue("NetworkDriver/tcpPort", port);
387 Q_EMIT portChanged();
388}
389
390/**
391 * @brief Changes the UDP socket's local port number.

Callers 1

setupTcpConnectionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected