25 #ifndef KSERVERSOCKET_H
26 #define KSERVERSOCKET_H
29 #include "ksocketbase.h"
36 class KResolverResults;
38 class KServerSocketPrivate;
141 KServerSocket(
const TQString& service, TQObject* parent = 0L,
const char *name = 0L);
162 TQObject* parent = 0L,
const char *name = 0L);
176 virtual bool setSocketOptions(
int opts);
208 void setResolutionEnabled(
bool enable);
216 void setFamily(
int families);
231 void setAddress(
const TQString& service);
248 void setAddress(
const TQString& node,
const TQString& service);
257 void setTimeout(
int msecs);
276 virtual bool lookup();
291 virtual bool bind(
const TQString& node,
const TQString& service);
299 virtual bool bind(
const TQString& service);
330 virtual bool listen(
int backlog = 5);
335 virtual void close();
348 void setAcceptBuffered(
bool enable);
380 void lookupFinishedSlot();
431 KServerSocketPrivate *d;
Abstract class for active sockets.
Abstract base class for passive sockets.
Name and service resolution results.
Name and service resolution class.
A server socket for accepting connections.
void closed()
This signal is emitted when the socket completes the closing/shut down process.
void readyAccept()
This signal is emitted whenever the socket is ready for accepting – i.e., there is at least one conne...
void bound(const KResolverEntry &local)
This signal is emitted when the socket successfully binds to an address.
void hostFound()
This signal is emitted when the lookup is successfully completed.
void gotError(int code)
This signal is emitted when this object finds an error.
A generic socket address.
A namespace to store all networking-related (socket) classes.