kserversocket.h
virtual TDESocketAddress localAddress() const
Returns this socket's local address.
Definition kserversocket.cpp:337
void readyAccept()
This signal is emitted whenever the socket is ready for accepting – i.e., there is at least one conne...
KResolver & resolver() const
Returns the internal KResolver object used for looking up the host name and service.
Definition kserversocket.cpp:100
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 setFamily(int families)
Sets the allowed families for the resolutions.
Definition kserversocket.cpp:118
void setResolutionEnabled(bool enable)
Enables or disables name resolution.
Definition kserversocket.cpp:110
virtual KActiveSocketBase * accept()
Accepts one incoming connection and return the associated, open socket.
Definition kserversocket.cpp:283
virtual TDESocketAddress externalAddress() const
Returns this socket's externally-visible address if know.
Definition kserversocket.cpp:342
virtual bool listen(int backlog=5)
Puts this socket into listening mode.
Definition kserversocket.cpp:232
void copyError()
Convenience function to set this object's error code to match that of the socket device.
Definition kserversocket.cpp:370
virtual bool lookup()
Starts the lookup for peer and local hostnames as well as their services.
Definition kserversocket.cpp:146
TDEServerSocket(TQObject *parent=0L, const char *name=0L)
Default constructor.
Definition kserversocket.cpp:61
void setAddress(const TQString &service)
Sets the address on which we will listen.
Definition kserversocket.cpp:123
virtual bool bind(const TQString &node, const TQString &service)
Binds this socket to the given nodename and service, or use the default ones if none are given.
Definition kserversocket.cpp:196
void hostFound()
This signal is emitted when the lookup is successfully completed.
void setAcceptBuffered(bool enable)
Toggles whether the accepted socket will be buffered or not.
Definition kserversocket.cpp:278
const KResolverResults & resolverResults() const
Returns the internal list of resolved results for the binding address.
Definition kserversocket.cpp:105
A namespace to store all networking-related (socket) classes.
Definition kbufferedsocket.h:36
Trinity API Reference