ksocketbase.cpp
88 return setSocketOptions((socketOptions() & ~AddressReuseable) | (enable ? AddressReuseable : 0));
void setError(int status, SocketError error)
Sets the socket's error code and the I/O Device's status.
Definition: ksocketbase.cpp:309
virtual TQT_TQIO_LONG tqwriteBlock(const char *data, TQT_TQIO_ULONG len)=0
Writes the given data to the socket.
void resetError()
Resets the socket error code and the I/O Device's status.
Definition: ksocketbase.cpp:315
virtual TQT_TQIO_LONG tqreadBlock(char *data, TQT_TQIO_ULONG len)=0
Reads data from the socket.
static bool isFatalError(int code)
Returns true if the given error code is a fatal one, false otherwise.
Definition: ksocketbase.cpp:259
int setRequestedCapabilities(int add, int remove=0)
Sets the internally requested capabilities for a socket device.
Definition: ksocketbase.cpp:143
virtual bool setBroadcast(bool enable)
Sets this socket Broadcast flag.
Definition: ksocketbase.cpp:106
bool hasDevice() const
Returns true if the socket device has been initialised in this object, either by calling socketDevice...
Definition: ksocketbase.cpp:150
virtual int socketOptions() const
Retrieves the socket options that have been set.
Definition: ksocketbase.cpp:71
virtual void setSocketDevice(KSocketDevice *device)
Sets the socket implementation to be used on this socket.
Definition: ksocketbase.cpp:136
virtual bool setIPv6Only(bool enable)
Sets this socket's IPv6 Only flag.
Definition: ksocketbase.cpp:96
virtual bool setBlocking(bool enable)
Sets this socket's blocking mode.
Definition: ksocketbase.cpp:76
virtual bool setAddressReuseable(bool enable)
Sets this socket's address reuseable flag.
Definition: ksocketbase.cpp:86
TQString errorString() const
Returns the error string corresponding to this error condition.
Definition: ksocketbase.h:383
KSocketDevice * socketDevice() const
Retrieves the socket implementation used on this socket.
Definition: ksocketbase.cpp:116
bool addressReuseable() const
Retrieves this socket's address reuseability flag.
Definition: ksocketbase.cpp:91
static KSocketDevice * createDefault(KSocketBase *parent)
Creates a new default KSocketDevice object given the parent object.
Definition: ksocketdevice.cpp:844
A namespace to store all networking-related (socket) classes.
Definition: kbufferedsocket.h:36