kstreamsocket.cpp
int remainingTimeout() const
Retrieves the remaining timeout time (in milliseconds).
Definition: kstreamsocket.cpp:78
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
void setNodeName(const TQString &nodename)
Sets the nodename for the resolution.
Definition: kresolver.cpp:352
A namespace to store all networking-related (socket) classes.
Definition: kbufferedsocket.h:36
void hostFound()
This signal is emitted when the lookup is successfully completed.
virtual bool lookup()
Starts the lookup for peer and local hostnames as well as their services.
Definition: kclientsocketbase.cpp:131
SocketState state() const
Returns the current state for this socket.
Definition: kclientsocketbase.cpp:64
void resetError()
Resets the socket error code and the I/O Device's status.
Definition: tdesocketbase.cpp:315
const KResolverResults & peerResults() const
Returns the internal list of resolved results for the peer address.
Definition: kclientsocketbase.cpp:96
void timedOut()
This signal is emitted when a connection timeout occurs.
virtual bool setSocketOptions(int opts)
This implementation sets the options on the socket.
Definition: tdesocketdevice.cpp:110
const KResolverResults & localResults() const
Returns the internal list of resolved results for the local address.
Definition: kclientsocketbase.cpp:106
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 aboutToConnect(const KResolverEntry &remote, bool &skip)
This signal is emitted when the socket is about to connect to an address (but before doing so).
void gotError(int code)
This signal is emitted when this object finds an error.
void stateChanged(int newstate)
This signal is emitted whenever the socket state changes.
void setError(int status, SocketError error)
Sets the socket's error code and the I/O Device's status.
Definition: tdesocketbase.cpp:309
void bound(const KResolverEntry &local)
This signal is emitted when the socket successfully binds to an address.
void copyError()
Convenience function to set this object's error code to match that of the socket device.
Definition: kclientsocketbase.cpp:472
void connected(const KResolverEntry &remote)
This socket is emitted when the socket successfully connects to a remote 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.
TQSocketNotifier * readNotifier() const
Returns a socket notifier for input on this socket.
Definition: tdesocketdevice.cpp:609
TDESocketDevice * socketDevice() const
Retrieves the socket implementation used on this socket.
Definition: tdesocketbase.cpp:116
virtual bool connect(const TQString &node=TQString::null, const TQString &service=TQString::null)
Reimplemented from KClientSocketBase.
Definition: kstreamsocket.cpp:108
TQSocketNotifier * writeNotifier() const
Returns a socket notifier for output on this socket.
Definition: tdesocketdevice.cpp:627
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
void setServiceName(const TQString &service)
Sets the service name to be resolved.
Definition: kresolver.cpp:364
KStreamSocket(const TQString &node=TQString::null, const TQString &service=TQString::null, TQObject *parent=0L, const char *name=0L)
Default constructor.
Definition: kstreamsocket.cpp:53
KResolver & peerResolver() const
Returns the internal KResolver object used for looking up the peer host name and service.
Definition: kclientsocketbase.cpp:91
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