36 QVector<quint8>
toArray()
const;
46 quint16 m_portNumber{0};
Represents a network port.
Definition port.h:24
Port()=default
Default constructor.
QVector< quint8 > toArray() const
Converts the port number to an array of bytes.
Definition port.cpp:11
quint16 portNumber() const
Returns the port number.
Definition port.cpp:9
bool operator<(const Port &other) const
Compares the port number with another port.
Definition port.cpp:23
static Port getRandomPort()
Returns a random port.
Definition port.cpp:19