KDECore
k3socketdevice.h
Go to the documentation of this file.
51class KDECORE_EXPORT_DEPRECATED KSocketDevice: public KActiveSocketBase, public KPassiveSocketBase
KSocketDeviceFactoryBase()
Definition k3socketdevice.h:390
virtual ~KSocketDeviceFactoryBase()
Definition k3socketdevice.h:391
virtual KSocketDevice * create(KSocketBase *) const =0
virtual ~KSocketDeviceFactory()
Definition k3socketdevice.h:405
KSocketDeviceFactory()
Definition k3socketdevice.h:404
virtual KSocketDevice * create(KSocketBase *parent) const
Create the socket implementation.
Definition k3socketdevice.h:411
static KSocketDeviceFactoryBase * setDefaultImpl(KSocketDeviceFactoryBase *factory)
Sets the default KSocketDevice implementation to use and return the old factory.
Definition k3socketdevice.cpp:907
virtual bool setSocketOptions(int opts)
This implementation sets the options on the socket.
Definition k3socketdevice.cpp:137
virtual bool create(int family, int type, int protocol)
Creates a socket but don't connect or bind anywhere.
Definition k3socketdevice.cpp:261
KSocketDevice(const KSocketBase *=0L, QObject *objparent=0L)
Default constructor.
Definition k3socketdevice.cpp:87
QSocketNotifier * readNotifier() const
Returns a socket notifier for input on this socket.
Definition k3socketdevice.cpp:647
@ CanMulticast
Can send multicast as well as join/leave multicast groups.
Definition k3socketdevice.h:85
virtual KSocketAddress externalAddress() const
Returns this socket's externally visible local address.
Definition k3socketdevice.cpp:640
static void addNewImpl(KSocketDeviceFactoryBase *factory, int capabilities)
Adds a factory of KSocketDevice objects to the list, along with its capabilities flag.
Definition k3socketdevice.cpp:915
virtual qint64 waitForMore(int msecs, bool *timeout=0L)
Waits up to msecs for more data to be available on this socket.
Definition k3socketdevice.cpp:451
virtual KSocketAddress localAddress() const
Returns this socket's local address.
Definition k3socketdevice.cpp:568
virtual qint64 readData(char *data, qint64 maxlen, KSocketAddress *from=0L)
Reads data and the source address from this socket.
Definition k3socketdevice.cpp:494
virtual qint64 peekData(char *data, qint64 maxlen, KSocketAddress *from=0L)
Peeks the data in the socket and the source address.
Definition k3socketdevice.cpp:515
QSocketNotifier * writeNotifier() const
Returns a socket notifier for output on this socket.
Definition k3socketdevice.cpp:665
virtual bool poll(bool *input, bool *output, bool *exception=0L, int timeout=-1, bool *timedout=0L)
Executes a poll in the socket, via select(2) or poll(2).
Definition k3socketdevice.cpp:701
virtual bool bind(const KResolverEntry &address)
Binds this socket to the given address.
Definition k3socketdevice.cpp:293
virtual bool listen(int backlog=5)
Puts this socket into listening mode.
Definition k3socketdevice.cpp:324
virtual QSocketNotifier * createNotifier(QSocketNotifier::Type type) const
Creates a socket notifier of the given type.
Definition k3socketdevice.cpp:829
virtual qint64 bytesAvailable() const
Returns the number of bytes available for reading without blocking.
Definition k3socketdevice.cpp:439
virtual bool connect(const KResolverEntry &address, OpenMode mode=ReadWrite)
Connect to a remote host.
Definition k3socketdevice.cpp:345
virtual qint64 writeData(const char *data, qint64 len, const KSocketAddress *to=0L)
Writes the given data to the given destination address.
Definition k3socketdevice.cpp:536
static KSocketDevice * createDefault(KSocketBase *parent)
Creates a new default KSocketDevice object given the parent object.
Definition k3socketdevice.cpp:877
virtual KSocketAddress peerAddress() const
Returns this socket's peer address.
Definition k3socketdevice.cpp:604
QSocketNotifier * exceptionNotifier() const
Returns a socket notifier for exceptional events on this socket.
Definition k3socketdevice.cpp:683
virtual int capabilities() const
Returns the set of capabilities this socket class implements.
Definition k3socketdevice.cpp:132
void output(QList< Action > actions, QHash< QString, QString > domain)
Definition fake/kauth-policy-gen-polkit.cpp:41
A namespace to store all networking-related (socket) classes.
Definition k3bufferedsocket.h:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.