45 #include <QtCore/qobject.h> 46 #include <QtNetwork/qabstractsocket.h> 47 #include <QtNetwork/qhostaddress.h> 56 #ifndef QT_NO_NETWORKPROXY 71 bool isListening()
const;
73 void setMaxPendingConnections(
int numConnections);
74 int maxPendingConnections()
const;
79 int socketDescriptor()
const;
80 bool setSocketDescriptor(
int socketDescriptor);
82 bool waitForNewConnection(
int msec = 0,
bool *timedOut = 0);
83 virtual bool hasPendingConnections()
const;
89 #ifndef QT_NO_NETWORKPROXY 95 virtual void incomingConnection(
int handle);
110 #endif // QTCPSERVER_H #define QT_END_NAMESPACE
This macro expands to.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
Q_GUI_EXPORT QString errorString(EGLint code=eglGetError())
The QNetworkProxy class provides a network layer proxy.
#define QT_BEGIN_NAMESPACE
This macro expands to.
SocketError
This enum describes the socket errors that can occur.
The QTcpSocket class provides a TCP socket.
The QTcpServer class provides a TCP-based server.
#define Q_DECLARE_PRIVATE(Class)
The QHostAddress class provides an IP address.