KDECore
k3serversocket.cpp
Go to the documentation of this file.
virtual void setSocketDevice(KSocketDevice *device)
Definition: k3socketbase.cpp:347
void setState(SocketState state)
Sets the socket state to state.
Definition: k3clientsocketbase.cpp:71
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
void closed()
This signal is emitted when the socket completes the closing/shut down process.
virtual bool lookup()
Starts the lookup for peer and local hostnames as well as their services.
Definition: k3serversocket.cpp:147
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 bool bind()
Binds the socket to the addresses previously set with setAddress().
Definition: k3serversocket.cpp:209
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
KSocketDevice * socketDevice() const
Retrieves the socket implementation used on this socket.
Definition: k3socketbase.cpp:148
virtual bool setSocketOptions(int opts)
This implementation sets the options on the socket.
Definition: k3socketdevice.cpp:137
virtual KSocketDevice * accept()
Accepts a new incoming connection.
Definition: k3socketdevice.cpp:382
virtual KSocketAddress externalAddress() const
Returns this socket's externally visible local address.
Definition: k3socketdevice.cpp:640
virtual KSocketAddress localAddress() const
Returns this socket's local address.
Definition: k3socketdevice.cpp:568
A namespace to store all networking-related (socket) classes.
Definition: k3bufferedsocket.h:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.