Definition at line 61 of file qtcpserver.h.
#include <qtcpserver.h>

Signals |
|
| void | newConnection () |
Public Member Functions |
|
| QTcpServer (QObject *parent=0) | |
| virtual | ~QTcpServer () |
| bool | listen (const QHostAddress &address=QHostAddress::Any, quint16 port=0) |
| void | close () |
| bool | isListening () const |
| void | setMaxPendingConnections (int numConnections) |
| int | maxPendingConnections () const |
| quint16 | serverPort () const |
| QHostAddress | serverAddress () const |
| int | socketDescriptor () const |
| bool | setSocketDescriptor (int socketDescriptor) |
| bool | waitForNewConnection (int msec=0, bool *timedOut=0) |
| virtual bool | hasPendingConnections () const |
| virtual QTcpSocket * | nextPendingConnection () |
| QAbstractSocket::SocketError | serverError () const |
| QString | errorString () const |
| void | setProxy (const QNetworkProxy &networkProxy) |
| QNetworkProxy | proxy () const |
Protected Member Functions |
|
| virtual void | incomingConnection (int handle) |
| void | addPendingConnection (QTcpSocket *socket) |
| QTcpServer | ( | QObject * | parent = 0 |
) | [explicit] |
| virtual ~QTcpServer | ( | ) | [virtual] |
| bool listen | ( | const QHostAddress & | address =
QHostAddress::Any, |
| quint16 | port = 0 |
||
| ) |
| void close | ( | ) |
| bool isListening | ( | ) | const |
| void setMaxPendingConnections | ( | int | numConnections | ) |
| int maxPendingConnections | ( | ) | const |
| quint16 serverPort | ( | ) | const |
| QHostAddress serverAddress | ( | ) | const |
| int socketDescriptor | ( | ) | const |
| bool setSocketDescriptor | ( | int | socketDescriptor | ) |
| bool waitForNewConnection | ( | int | msec = 0, |
| bool * | timedOut = 0 |
||
| ) |
| virtual bool hasPendingConnections | ( | ) | const [virtual] |
| virtual QTcpSocket* nextPendingConnection | ( | ) | [virtual] |
| QAbstractSocket::SocketError serverError | ( | ) | const |
| QString errorString | ( | ) | const |
| void setProxy | ( | const QNetworkProxy & | networkProxy | ) |
| QNetworkProxy proxy | ( | ) | const |
| virtual void incomingConnection | ( | int | handle | ) | [protected, virtual] |
| void addPendingConnection | ( | QTcpSocket * | socket | ) | [protected] |
| void newConnection | ( | ) | [signal] |