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