25#ifndef KSERVERSOCKET_H
26#define KSERVERSOCKET_H
29#include "tdesocketbase.h"
36class KResolverResults;
38class TDEServerSocketPrivate;
141 TDEServerSocket(
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 TDEServerSocketPrivate *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 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 gotError(int code)
This signal is emitted when this object finds an error.
void closed()
This signal is emitted when the socket completes the closing/shut down process.
void hostFound()
This signal is emitted when the lookup is successfully completed.
A generic socket address.
A namespace to store all networking-related (socket) classes.