KDELibs4Support
k3socketbase.cpp
107 return setSocketOptions((socketOptions() & ~AddressReuseable) | (enable ? AddressReuseable : 0));
static bool isFatalError(int code)
Returns true if the given error code is a fatal one, false otherwise.
Definition: k3socketbase.cpp:302
KSocketDevice * socketDevice() const
Retrieves the socket implementation used on this socket.
Definition: k3socketbase.cpp:145
bool addressReuseable() const
Retrieves this socket's address reuseability flag.
Definition: k3socketbase.cpp:110
qint64 readData(char *data, qint64 len) override
Reads data from the socket.
Definition: k3socketbase.cpp:426
virtual bool setAddressReuseable(bool enable)
Sets this socket's address reuseable flag.
Definition: k3socketbase.cpp:105
virtual bool seek(qint64 pos)
QString errorString() const const
void resetError()
Resets the socket error code and the I/O Device's status.
Definition: k3socketbase.cpp:442
typedef OpenMode
qint64 peek(char *data, qint64 maxlen)
Peeks the data in the socket and the source address.
Definition: k3socketbase.cpp:395
virtual bool open(QIODevice::OpenMode mode)
int setRequestedCapabilities(int add, int remove=0)
Sets the internally requested capabilities for a socket device.
Definition: k3socketbase.cpp:177
bool isIPv6Only() const
Retrieves this socket's IPv6 Only flag.
Definition: k3socketbase.cpp:120
void clear()
A namespace to store all networking-related (socket) classes.
Definition: k3bufferedsocket.h:35
virtual bool setBroadcast(bool enable)
Sets this socket Broadcast flag.
Definition: k3socketbase.cpp:125
virtual bool setIPv6Only(bool enable)
Sets this socket's IPv6 Only flag.
Definition: k3socketbase.cpp:115
void setSocketDevice(KSocketDevice *device) override
Definition: k3socketbase.cpp:348
QString i18nc(const char *context, const char *text, const TYPE &arg...)
qint64 read(char *data, qint64 maxSize)
virtual bool setSocketOptions(int opts)
Set the given socket options.
Definition: k3socketbase.cpp:84
QIODevice::OpenMode openMode() const const
qint64 write(const char *data, qint64 len)
Writes the given data to the socket.
Definition: k3socketbase.cpp:405
qint64 writeData(const char *data, qint64 len) override
Writes the given data to the socket.
Definition: k3socketbase.cpp:431
virtual qint64 peekData(char *data, qint64 maxlen, KSocketAddress *from)=0
Peeks the data in the socket and the source address.
void resetError()
Resets the socket error code and the I/O Device's status.
Definition: k3socketbase.cpp:194
virtual void setSocketDevice(KSocketDevice *device)
Sets the socket implementation to be used on this socket.
Definition: k3socketbase.cpp:169
Capabilities capabilities()
qint64 write(const char *data, qint64 maxSize)
bool hasDevice() const
Returns true if the socket device has been initialised in this object, either by calling socketDevice...
Definition: k3socketbase.cpp:184
virtual bool setBlocking(bool enable)
Sets this socket's blocking mode.
Definition: k3socketbase.cpp:95
void setErrorString(const QString &str)
QString errorString() const
Returns the error string corresponding to this error condition.
Definition: k3socketbase.cpp:204
virtual bool setNoDelay(bool enable)
Sets this socket's NoDelay flag.
Definition: k3socketbase.cpp:135
virtual int socketOptions() const
Retrieves the socket options that have been set.
Definition: k3socketbase.cpp:90
static KSocketDevice * createDefault(KSocketBase *parent)
Creates a new default KSocketDevice object given the parent object.
Definition: k3socketdevice.cpp:889
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jan 23 2021 03:47:34 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jan 23 2021 03:47:34 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.