7#include <QtNetwork/qtnetworkglobal.h>
8#include <QtCore/qobject.h>
9#include <QtNetwork/qabstractsocket.h>
10#include <QtNetwork/qhostaddress.h>
16#ifndef QT_NO_NETWORKPROXY
31 bool isListening()
const;
33 void setMaxPendingConnections(
int numConnections);
34 int maxPendingConnections()
const;
36 void setListenBacklogSize(
int size);
37 int listenBacklogSize()
const;
42 qintptr socketDescriptor()
const;
43 bool setSocketDescriptor(
qintptr socketDescriptor);
45 bool waitForNewConnection(
int msec = 0,
bool *timedOut =
nullptr);
46 virtual bool hasPendingConnections()
const;
52 void pauseAccepting();
53 void resumeAccepting();
55#ifndef QT_NO_NETWORKPROXY
SocketError
This enum describes the socket errors that can occur.
SocketType
This enum describes the transport layer protocol.
The QHostAddress class provides an IP address.
The QNetworkProxy class provides a network layer proxy.
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QTcpServer class provides a TCP-based server.
void newConnection()
This signal is emitted every time a new connection is available, regardless of whether it has been ad...
void acceptError(QAbstractSocket::SocketError socketError)
void pendingConnectionAvailable(QPrivateSignal)
This signal is emitted every time a new connection has been added to the pending connections queue.
The QTcpSocket class provides a TCP socket.
Combined button and popup list for selecting options.
static QT_BEGIN_NAMESPACE const char * socketType(QSocketNotifier::Type type)
GLuint64 GLenum void * handle
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLuint GLuint64EXT address
serverSocket setProxy(QNetworkProxy::NoProxy)
[0]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent