tdesocketbase.cpp
50TDESocketBase::TDESocketBase()
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: tdesocketbase.cpp:309
void resetError()
Resets the socket error code and the I/O Device's status.
Definition: tdesocketbase.cpp:315
virtual TQ_LONG readBlock(char *data, TQ_ULONG len)=0
Reads data from the socket.
virtual TQ_LONG writeBlock(const char *data, TQ_ULONG len)=0
Writes the given data to the socket.
int setRequestedCapabilities(int add, int remove=0)
Sets the internally requested capabilities for a socket device.
Definition: tdesocketbase.cpp:143
bool hasDevice() const
Returns true if the socket device has been initialised in this object, either by calling socketDevice...
Definition: tdesocketbase.cpp:150
virtual bool setAddressReuseable(bool enable)
Sets this socket's address reuseable flag.
Definition: tdesocketbase.cpp:86
virtual void setSocketDevice(TDESocketDevice *device)
Sets the socket implementation to be used on this socket.
Definition: tdesocketbase.cpp:136
virtual bool setBlocking(bool enable)
Sets this socket's blocking mode.
Definition: tdesocketbase.cpp:76
bool addressReuseable() const
Retrieves this socket's address reuseability flag.
Definition: tdesocketbase.cpp:91
virtual bool setIPv6Only(bool enable)
Sets this socket's IPv6 Only flag.
Definition: tdesocketbase.cpp:96
TQString errorString() const
Returns the error string corresponding to this error condition.
Definition: tdesocketbase.h:383
virtual bool setBroadcast(bool enable)
Sets this socket Broadcast flag.
Definition: tdesocketbase.cpp:106
TDESocketDevice * socketDevice() const
Retrieves the socket implementation used on this socket.
Definition: tdesocketbase.cpp:116
virtual int socketOptions() const
Retrieves the socket options that have been set.
Definition: tdesocketbase.cpp:71
static bool isFatalError(int code)
Returns true if the given error code is a fatal one, false otherwise.
Definition: tdesocketbase.cpp:259
virtual bool setSocketOptions(int opts)
Set the given socket options.
Definition: tdesocketbase.cpp:65
static TDESocketDevice * createDefault(TDESocketBase *parent)
Creates a new default TDESocketDevice object given the parent object.
Definition: tdesocketdevice.cpp:839
A namespace to store all networking-related (socket) classes.
Definition: kbufferedsocket.h:36