KDECore
k3socketbase.cpp
Go to the documentation of this file.
109 return setSocketOptions((socketOptions() & ~AddressReuseable) | (enable ? AddressReuseable : 0));
virtual qint64 writeData(const char *data, qint64 len)
Writes the given data to the socket.
Definition: k3socketbase.cpp:430
void resetError()
Resets the socket error code and the I/O Device's status.
Definition: k3socketbase.cpp:441
qint64 write(const char *data, qint64 len)
Writes the given data to the socket.
Definition: k3socketbase.cpp:404
virtual qint64 peekData(char *data, qint64 maxlen, KSocketAddress *from)=0
Peeks the data in the socket and the source address.
qint64 peek(char *data, qint64 maxlen)
Peeks the data in the socket and the source address.
Definition: k3socketbase.cpp:394
virtual qint64 readData(char *data, qint64 len)
Reads data from the socket.
Definition: k3socketbase.cpp:425
virtual void setSocketDevice(KSocketDevice *device)
Definition: k3socketbase.cpp:347
QString errorString() const
Returns the error string corresponding to this error condition.
Definition: k3socketbase.cpp:202
void resetError()
Resets the socket error code and the I/O Device's status.
Definition: k3socketbase.cpp:192
static bool isFatalError(int code)
Returns true if the given error code is a fatal one, false otherwise.
Definition: k3socketbase.cpp:301
int setRequestedCapabilities(int add, int remove=0)
Sets the internally requested capabilities for a socket device.
Definition: k3socketbase.cpp:175
virtual bool setBroadcast(bool enable)
Sets this socket Broadcast flag.
Definition: k3socketbase.cpp:127
bool hasDevice() const
Returns true if the socket device has been initialised in this object, either by calling socketDevice...
Definition: k3socketbase.cpp:182
virtual int socketOptions() const
Retrieves the socket options that have been set.
Definition: k3socketbase.cpp:92
virtual void setSocketDevice(KSocketDevice *device)
Sets the socket implementation to be used on this socket.
Definition: k3socketbase.cpp:168
virtual bool setIPv6Only(bool enable)
Sets this socket's IPv6 Only flag.
Definition: k3socketbase.cpp:117
virtual bool setBlocking(bool enable)
Sets this socket's blocking mode.
Definition: k3socketbase.cpp:97
virtual bool setAddressReuseable(bool enable)
Sets this socket's address reuseable flag.
Definition: k3socketbase.cpp:107
virtual bool setNoDelay(bool enable)
Sets this socket's NoDelay flag.
Definition: k3socketbase.cpp:137
KSocketDevice * socketDevice() const
Retrieves the socket implementation used on this socket.
Definition: k3socketbase.cpp:148
bool addressReuseable() const
Retrieves this socket's address reuseability flag.
Definition: k3socketbase.cpp:112
static KSocketDevice * createDefault(KSocketBase *parent)
Creates a new default KSocketDevice object given the parent object.
Definition: k3socketdevice.cpp:877
QString i18nc(const char *ctxt, const char *text)
Returns a localized version of a string and a context.
Definition: klocalizedstring.h:797
A namespace to store all networking-related (socket) classes.
Definition: k3bufferedsocket.h:35
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.