kstreamsocket.cpp
TQSocketNotifier * readNotifier() const
Returns a socket notifier for input on this socket.
Definition: tdesocketdevice.cpp:614
SocketState state() const
Returns the current state for this socket.
Definition: kclientsocketbase.cpp:72
int remainingTimeout() const
Retrieves the remaining timeout time (in milliseconds).
Definition: kstreamsocket.cpp:78
void resetError()
Resets the socket error code and the I/O Device's status.
Definition: tdesocketbase.cpp:315
TQSocketNotifier * writeNotifier() const
Returns a socket notifier for output on this socket.
Definition: tdesocketdevice.cpp:632
virtual bool lookup()
Starts the lookup for peer and local hostnames as well as their services.
Definition: kclientsocketbase.cpp:139
KResolver & localResolver() const
Returns the internal KResolver object used for looking up the local host name and service...
Definition: kclientsocketbase.cpp:109
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 hostFound()
This signal is emitted when the lookup is successfully completed.
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
virtual bool setSocketOptions(int opts)
Sets the socket options.
Definition: kclientsocketbase.cpp:83
A namespace to store all networking-related (socket) classes.
Definition: kbufferedsocket.h:36
void timedOut()
This signal is emitted when a connection timeout occurs.
void setServiceName(const TQString &service)
Sets the service name to be resolved.
Definition: kresolver.cpp:364
void copyError()
Convenience function to set this object's error code to match that of the socket device.
Definition: kclientsocketbase.cpp:485
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 setError(int status, SocketError error)
Sets the socket's error code and the I/O Device's status.
Definition: tdesocketbase.cpp:309
const KResolverResults & peerResults() const
Returns the internal list of resolved results for the peer address.
Definition: kclientsocketbase.cpp:104
void connected(const KResolverEntry &remote)
This socket is emitted when the socket successfully connects to a remote address. ...
void setState(SocketState state)
Sets the socket state to state.
Definition: kclientsocketbase.cpp:77
void stateChanged(int newstate)
This signal is emitted whenever the socket state changes.
TDESocketDevice * socketDevice() const
Retrieves the socket implementation used on this socket.
Definition: tdesocketbase.cpp:116
virtual bool connect(const KResolverEntry &address)
Connect to a remote host.
Definition: tdesocketdevice.cpp:276
virtual int socketOptions() const
Retrieves the socket options that have been set.
Definition: tdesocketbase.cpp:71
void bound(const KResolverEntry &local)
This signal is emitted when the socket successfully binds to an address.
virtual bool setBlocking(bool enable)
Sets this socket's blocking mode.
Definition: tdesocketbase.cpp:76
virtual bool setSocketOptions(int opts)
This implementation sets the options on the socket.
Definition: tdesocketdevice.cpp:110
virtual bool bind(const KResolverEntry &address)
Binds this socket to the given address.
Definition: tdesocketdevice.cpp:232
int family() const
Retrieves the family associated with this socket address.
Definition: kresolver.cpp:154
void setNodeName(const TQString &nodename)
Sets the nodename for the resolution.
Definition: kresolver.cpp:352
const KResolverResults & localResults() const
Returns the internal list of resolved results for the local address.
Definition: kclientsocketbase.cpp:114
virtual bool connect(const TQString &node=TQString::null, const TQString &service=TQString::null)
Reimplemented from KClientSocketBase.
Definition: kstreamsocket.cpp:108
KStreamSocket(const TQString &node=TQString::null, const TQString &service=TQString::null, TQObject *parent=0L, const char *name=0L)
Default constructor.
Definition: kstreamsocket.cpp:53
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:668
KResolver & peerResolver() const
Returns the internal KResolver object used for looking up the peer host name and service.
Definition: kclientsocketbase.cpp:99