QTcpServer

#include <QtNetwork/QTcpServer>

More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QTcpServer


Overview

Public Functions Index

QTcpServer (QObject *parent=0)
virtual ~QTcpServer ()
voidclose ()
QStringerrorString () const
virtual boolhasPendingConnections () const
boolisListening () const
boollisten (const QHostAddress &address=QHostAddress::Any, quint16 port=0)
intmaxPendingConnections () const
virtual QTcpSocket *nextPendingConnection ()
QNetworkProxyproxy () const
QHostAddressserverAddress () const
QAbstractSocket::SocketErrorserverError () const
quint16serverPort () const
voidsetMaxPendingConnections (int numConnections)
voidsetProxy (const QNetworkProxy &networkProxy)
boolsetSocketDescriptor (int socketDescriptor)
intsocketDescriptor () const
boolwaitForNewConnection (int msec=0, bool *timedOut=0)

Protected Functions Index

voidaddPendingConnection (QTcpSocket *socket)
virtual voidincomingConnection (int handle)

Signals Index

Public Functions

QTcpServer (

virtual~QTcpServer ()

Destructor.

void close ()

QString errorString ()

virtual bool hasPendingConnections ()

bool isListening ()

bool listen (

int maxPendingConnections ()

virtualQTcpSocket * nextPendingConnection ()

QNetworkProxy proxy ()

QHostAddress serverAddress ()

QAbstractSocket::SocketError serverError ()

quint16 serverPort ()

void setMaxPendingConnections (
  • intnumConnections)

void setProxy (

bool setSocketDescriptor (
  • intsocketDescriptor)

int socketDescriptor ()

bool waitForNewConnection (
  • intmsec,
  • bool *timedOut )

Protected Functions

void addPendingConnection (

virtual void incomingConnection (
  • inthandle)

Signals

void newConnection ()

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus