static constexpr auto IPv4Protocol
The QNativeSocketEngine class provides low level access to a socket.
bool waitForRead(int msecs=30000, bool *timedOut=nullptr) override
Waits for msecs milliseconds or until the socket is ready for reading.
bool waitForWrite(int msecs=30000, bool *timedOut=nullptr) override
Waits for msecs milliseconds or until the socket is ready for writing.
qintptr accept() override
Accepts a pending connection from the socket, which must be in ListeningState, and returns its socket...
bool listen(int backlog) override
Prepares a TCP server for accepting incoming connections.
bool connectToHost(const QHostAddress &address, quint16 port) override
Connects to the IP address and port specified by address and port.
bool bind(const QHostAddress &address, quint16 port) override
Binds the socket to the address address and port port.
bool initialize(QAbstractSocket::SocketType type, QAbstractSocket::NetworkLayerProtocol protocol=QAbstractSocket::IPv4Protocol) override
Initializes a QNativeSocketEngine by creating a new socket of type socketType and network layer proto...
QNativeSocketEngine socketLayer
[0]
QUdpSocket clientSocket
[0]