KDECore
ksocketfactory.h
Go to the documentation of this file.
189 KDECORE_EXPORT QTcpServer *listen(const QString &protocol, const QHostAddress &address = QHostAddress::Any,
195 KDECORE_EXPORT QUdpSocket *datagramSocket(const QString &protocol, const QString &host, QObject *parent = 0);
KSocketFactory provides functions for opening sockets to remote hosts.
QNetworkProxy proxyForConnection(const QString &protocol, const QString &host)
Definition: ksocketfactory.cpp:137
QUdpSocket * datagramSocket(const QString &protocol, const QString &host, QObject *parent=0)
Definition: ksocketfactory.cpp:126
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
QNetworkProxy proxyForDatagram(const QString &protocol, const QString &host)
Definition: ksocketfactory.cpp:147
QNetworkProxy proxyForListening(const QString &protocol)
Definition: ksocketfactory.cpp:142
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
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
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.