KDECore
k3socketbase.cpp
Go to the documentation of this file.
109 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:301
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
virtual bool setAddressReuseable(bool enable)
Sets this socket's address reuseable flag.
Definition: k3socketbase.cpp:107
void resetError()
Resets the socket error code and the I/O Device's status.
Definition: k3socketbase.cpp:441
virtual qint64 readData(char *data, qint64 len)
Reads data from the socket.
Definition: k3socketbase.cpp:425
qint64 peek(char *data, qint64 maxlen)
Peeks the data in the socket and the source address.
Definition: k3socketbase.cpp:394
QString i18nc(const char *ctxt, const char *text)
Returns a localized version of a string and a context.
Definition: klocalizedstring.h:797
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
virtual bool setIPv6Only(bool enable)
Sets this socket's IPv6 Only flag.
Definition: k3socketbase.cpp:117
Definition: k3socketbase.h:115
Definition: k3socketbase.h:145
virtual bool setSocketOptions(int opts)
Set the given socket options.
Definition: k3socketbase.cpp:86
qint64 write(const char *data, qint64 len)
Writes the given data to the socket.
Definition: k3socketbase.cpp:404
virtual void setSocketDevice(KSocketDevice *device)
Definition: k3socketbase.cpp:347
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:192
virtual void setSocketDevice(KSocketDevice *device)
Sets the socket implementation to be used on this socket.
Definition: k3socketbase.cpp:168
Definition: k3socketbase.h:160
bool hasDevice() const
Returns true if the socket device has been initialised in this object, either by calling socketDevice...
Definition: k3socketbase.cpp:182
virtual bool setBlocking(bool enable)
Sets this socket's blocking mode.
Definition: k3socketbase.cpp:97
QString errorString() const
Returns the error string corresponding to this error condition.
Definition: k3socketbase.cpp:202
virtual bool setNoDelay(bool enable)
Sets this socket's NoDelay flag.
Definition: k3socketbase.cpp:137
virtual int socketOptions() const
Retrieves the socket options that have been set.
Definition: k3socketbase.cpp:92
static KSocketDevice * createDefault(KSocketBase *parent)
Creates a new default KSocketDevice object given the parent object.
Definition: k3socketdevice.cpp:877
virtual qint64 writeData(const char *data, qint64 len)
Writes the given data to the socket.
Definition: k3socketbase.cpp:430
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.