KDECore
ksocketfactory.cpp
Go to the documentation of this file.
47 _k_internal_QTcpSocketSetError *hackSocket = static_cast<_k_internal_QTcpSocketSetError *>(socket);
52 void KSocketFactory::connectToHost(QTcpSocket *socket, const QString &protocol, const QString &host,
69 QTcpSocket *KSocketFactory::connectToHost(const QString &protocol, const QString &host, quint16 port,
100 QTcpSocket *KSocketFactory::synchronousConnectToHost(const QString &protocol, const QString &host,
110 QTcpSocket *KSocketFactory::synchronousConnectToHost(const QUrl &url, int msecs, QObject *parent)
115 QTcpServer *KSocketFactory::listen(const QString &protocol, const QHostAddress &address, quint16 port,
126 QUdpSocket *KSocketFactory::datagramSocket(const QString &protocol, const QString &host, QObject *parent)
QString i18n(const char *text)
Returns a localized version of a string.
Definition: klocalizedstring.h:630
void setSocketState(SocketState state)
QString host() const
void setProxy(const QNetworkProxy &networkProxy)
QTcpSocket * synchronousConnectToHost(const QString &protocol, const QString &host, quint16 port, int msecs=30000, QObject *parent=0)
This function behaves exactly like connectToHost() above, except that the socket it returns is either...
Definition: ksocketfactory.cpp:100
QNetworkProxy proxyForConnection(const QString &protocol, const QString &host)
Definition: ksocketfactory.cpp:137
QTcpServer * listen(const QString &protocol, const QHostAddress &address=QHostAddress::Any, quint16 port=0, QObject *parent=0)
Opens a TCP/IP socket for listening protocol protocol, binding only at address address.
Definition: ksocketfactory.cpp:115
int port() const
void setProxy(const QNetworkProxy &networkProxy)
static void setError(QAbstractSocket *socket, QAbstractSocket::SocketError error, const QString &errorString)
Definition: ksocketfactory.cpp:44
QNetworkProxy proxyForListening(const QString &protocol)
Definition: ksocketfactory.cpp:142
void connectToHost(const QString &hostName, quint16 port, QFlags< QIODevice::OpenModeFlag > openMode)
QTcpSocket * connectToHost(const QString &protocol, const QString &host, quint16 port, QObject *parent=0)
Initiates a TCP/IP socket connection to remote node (host) host, using the protocol.
Definition: ksocketfactory.cpp:69
bool listen(const QHostAddress &address, quint16 port)
QString scheme() const
QUdpSocket * datagramSocket(const QString &protocol, const QString &host, QObject *parent=0)
Definition: ksocketfactory.cpp:126
QNetworkProxy proxyForDatagram(const QString &protocol, const QString &host)
Definition: ksocketfactory.cpp:147
bool waitForConnected(int msecs)
void setSocketError(SocketError socketError)
void setErrorString(const QString &str)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.