25 #ifndef KSTREAMSOCKET_H
26 #define KSTREAMSOCKET_H
30 #include "kclientsocketbase.h"
36 class KResolverResults;
38 class TDEBufferedSocket;
40 class KStreamSocketPrivate;
111 KStreamSocket(
const TQString& node = TQString::null,
const TQString& service = TQString::null,
112 TQObject* parent = 0L,
const char *name = 0L);
128 int remainingTimeout()
const;
140 void setTimeout(
int msecs);
165 virtual bool bind(
const TQString& node = TQString::null,
166 const TQString& service = TQString::null);
200 virtual bool connect(
const TQString& node = TQString::null,
201 const TQString& service = TQString::null);
215 void hostFoundSlot();
216 void connectionEvent();
242 KStreamSocketPrivate *d;
Abstract client socket class.
virtual bool bind(const TQString &node=TQString::null, const TQString &service=TQString::null)=0
Binds this socket to the given nodename and service, or use the default ones if none are given.
virtual bool bind(const KResolverEntry &entry)
Reimplemented from KClientSocketBase.
void timedOut()
This signal is emitted when a connection timeout occurs.
A server socket for accepting connections.
Monitors a port for incoming TCP/IP connections.
A namespace to store all networking-related (socket) classes.