kstreamsocket.cpp
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
void connected(const KResolverEntry &remote)
This socket is emitted when the socket successfully connects to a remote address.
const KResolverResults & localResults() const
Returns the internal list of resolved results for the local address.
Definition: kclientsocketbase.cpp:106
SocketState state() const
Returns the current state for this socket.
Definition: kclientsocketbase.cpp:64
void bound(const KResolverEntry &local)
This signal is emitted when the socket successfully binds to an address.
virtual bool connect(const TQString &node=TQString::null, const TQString &service=TQString::null)=0
Attempts to connect to the these hostname and service, or use the default ones if none are given.
void gotError(int code)
This signal is emitted when this object finds an error.
virtual bool lookup()
Starts the lookup for peer and local hostnames as well as their services.
Definition: kclientsocketbase.cpp:131
void aboutToConnect(const KResolverEntry &remote, bool &skip)
This signal is emitted when the socket is about to connect to an address (but before doing so).
KResolver & peerResolver() const
Returns the internal KResolver object used for looking up the peer host name and service.
Definition: kclientsocketbase.cpp:91
void copyError()
Convenience function to set this object's error code to match that of the socket device.
Definition: kclientsocketbase.cpp:472
void hostFound()
This signal is emitted when the lookup is successfully completed.
const KResolverResults & peerResults() const
Returns the internal list of resolved results for the peer address.
Definition: kclientsocketbase.cpp:96
void stateChanged(int newstate)
This signal is emitted whenever the socket state changes.
KResolver & localResolver() const
Returns the internal KResolver object used for looking up the local host name and service.
Definition: kclientsocketbase.cpp:101
int family() const
Retrieves the family associated with this socket address.
Definition: kresolver.cpp:154
void setServiceName(const TQString &service)
Sets the service name to be resolved.
Definition: kresolver.cpp:364
void setNodeName(const TQString &nodename)
Sets the nodename for the resolution.
Definition: kresolver.cpp:352
virtual bool connect(const TQString &node=TQString::null, const TQString &service=TQString::null)
Reimplemented from KClientSocketBase.
Definition: kstreamsocket.cpp:108
virtual bool bind(const TQString &node=TQString::null, const TQString &service=TQString::null)
Binds this socket to the given nodename and service, or use the default ones if none are given.
Definition: kstreamsocket.cpp:96
void timedOut()
This signal is emitted when a connection timeout occurs.
int remainingTimeout() const
Retrieves the remaining timeout time (in milliseconds).
Definition: kstreamsocket.cpp:78
virtual bool setBlocking(bool enable)
Sets this socket's blocking mode.
Definition: tdesocketbase.cpp:76
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
virtual bool setSocketOptions(int opts)
This implementation sets the options on the socket.
Definition: tdesocketdevice.cpp:110
virtual bool poll(bool *input, bool *output, bool *exception=0L, int timeout=-1, bool *timedout=0L)
Executes a poll in the socket, via select(2) or poll(2).
Definition: tdesocketdevice.cpp:663
TQSocketNotifier * writeNotifier() const
Returns a socket notifier for output on this socket.
Definition: tdesocketdevice.cpp:627
TQSocketNotifier * readNotifier() const
Returns a socket notifier for input on this socket.
Definition: tdesocketdevice.cpp:609
A namespace to store all networking-related (socket) classes.
Definition: kbufferedsocket.h:36