QTcpServer Class Reference
[QtNetwork module]
Inherits QObject.
Methods
- __init__ (self, QObject parent = None)
- addPendingConnection (self, QTcpSocket socket)
- close (self)
- QString errorString (self)
- bool hasPendingConnections (self)
- incomingConnection (self, int)
- bool isListening (self)
- bool listen (self, QHostAddress address = QHostAddress.Any, int port = 0)
- int maxPendingConnections (self)
- QTcpSocket nextPendingConnection (self)
- QNetworkProxy proxy (self)
- QHostAddress serverAddress (self)
- QAbstractSocket.SocketError serverError (self)
- int serverPort (self)
- setMaxPendingConnections (self, int)
- setProxy (self, QNetworkProxy)
- bool setSocketDescriptor (self, int)
- int socketDescriptor (self)
- (bool, bool timedOut) waitForNewConnection (self, int msecs = 0)
Qt Signals
Detailed Description
Method Documentation
QTcpServer.__init__ (self, QObject parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
QTcpServer.addPendingConnection (self, QTcpSocket socket)
QTcpServer.close (self)
QString QTcpServer.errorString (self)
bool QTcpServer.hasPendingConnections (self)
QTcpServer.incomingConnection (self, int)
bool QTcpServer.isListening (self)
bool QTcpServer.listen (self, QHostAddress address = QHostAddress.Any, int port = 0)
int QTcpServer.maxPendingConnections (self)
QTcpSocket QTcpServer.nextPendingConnection (self)
QHostAddress QTcpServer.serverAddress (self)
int QTcpServer.serverPort (self)
QTcpServer.setMaxPendingConnections (self, int)
QTcpServer.setProxy (self, QNetworkProxy)
bool QTcpServer.setSocketDescriptor (self, int)
int QTcpServer.socketDescriptor (self)
(bool, bool timedOut) QTcpServer.waitForNewConnection (self, int msecs = 0)
Qt Signal Documentation
void newConnection ()
This is the default overload of this signal.