KDECore
k3serversocket.h
Go to the documentation of this file.
KResolver & resolver() const
Returns the internal KResolver object used for looking up the host name and service.
Definition k3serversocket.cpp:101
void setAcceptBuffered(bool enable)
Toggles whether the accepted socket will be buffered or not.
Definition k3serversocket.cpp:279
virtual bool bind(const QString &node, const QString &service)
Binds this socket to the given nodename and service, or use the default ones if none are given.
Definition k3serversocket.cpp:197
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...
virtual KSocketAddress externalAddress() const
Returns this socket's externally-visible address if know.
Definition k3serversocket.cpp:349
void setAddress(const QString &service)
Sets the address on which we will listen.
Definition k3serversocket.cpp:124
const KResolverResults & resolverResults() const
Returns the internal list of resolved results for the binding address.
Definition k3serversocket.cpp:106
void copyError()
Convenience function to set this object's error code to match that of the socket device.
Definition k3serversocket.cpp:377
virtual KSocketAddress localAddress() const
Returns this socket's local address.
Definition k3serversocket.cpp:344
virtual bool listen(int backlog=5)
Puts this socket into listening mode.
Definition k3serversocket.cpp:233
void setResolutionEnabled(bool enable)
Enables or disables name resolution.
Definition k3serversocket.cpp:111
virtual KStreamSocket * accept()
Accepts one incoming connection and return the associated, open socket.
Definition k3serversocket.cpp:284
void hostFound()
This signal is emitted when the lookup is successfully completed.
void bound(const KNetwork::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 setFamily(int families)
Sets the allowed families for the resolutions.
Definition k3serversocket.cpp:119
static QByteArray lookup(const KConfigIniBackend::BufferFragment &fragment, QHash< KConfigIniBackend::BufferFragment, QByteArray > *cache)
Definition kconfigini.cpp:43
A namespace to store all networking-related (socket) classes.
Definition k3bufferedsocket.h:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.