Signals | Public Member Functions | Protected Member Functions

QTcpServer Class Reference

Search for all occurrences

Detailed Description

Definition at line 61 of file qtcpserver.h.

#include <qtcpserver.h>

Inheritance diagram for QTcpServer:
Inheritance graph
[legend]

List of all members.

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)

Constructor & Destructor Documentation

QTcpServer ( QObject parent = 0 ) [explicit]
virtual ~QTcpServer ( ) [virtual]

Member Function Documentation

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]

The documentation for this class was generated from the following file:

QTcpServer QTcpServer QTcpServer QTcpServer QTcpServer QTcpServer QTcpServer QTcpServer QTcpServer QTcpServer
QTcpServer QTcpServer QTcpServer QTcpServer QTcpServer QTcpServer QTcpServer QTcpServer QTcpServer QTcpServer