KDECore
k3serversocket.cpp
Go to the documentation of this file.
virtual KSocketAddress externalAddress() const
Returns this socket's externally-visible address if know.
Definition: k3serversocket.cpp:349
KSocketDevice * socketDevice() const
Retrieves the socket implementation used on this socket.
Definition: k3socketbase.cpp:148
virtual KSocketAddress localAddress() const
Returns this socket's local address.
Definition: k3serversocket.cpp:344
const KResolverResults & resolverResults() const
Returns the internal list of resolved results for the binding address.
Definition: k3serversocket.cpp:106
virtual KSocketDevice * accept()
Accepts a new incoming connection.
Definition: k3socketdevice.cpp:382
void bound(const KNetwork::KResolverEntry &local)
This signal is emitted when the socket successfully binds to an address.
virtual bool listen(int backlog=5)
Puts this socket into listening mode.
Definition: k3serversocket.cpp:233
void setAddress(const QString &service)
Sets the address on which we will listen.
Definition: k3serversocket.cpp:124
virtual bool setSocketOptions(int opts)
This implementation sets the options on the socket.
Definition: k3socketdevice.cpp:137
Definition: kuitsemantics.cpp:82
void gotError(int code)
This signal is emitted when this object finds an error.
Definition: k3socketbase.h:145
void setResolutionEnabled(bool enable)
Enables or disables name resolution.
Definition: k3serversocket.cpp:111
void setState(SocketState state)
Sets the socket state to state.
Definition: k3clientsocketbase.cpp:71
Definition: k3resolver.h:346
virtual bool setSocketOptions(int opts)
Set the given socket options.
Definition: k3socketbase.cpp:86
void closed()
This signal is emitted when the socket completes the closing/shut down process.
virtual void setSocketDevice(KSocketDevice *device)
Definition: k3socketbase.cpp:347
void hostFound()
This signal is emitted when the lookup is successfully completed.
virtual bool bind()
Binds the socket to the addresses previously set with setAddress().
Definition: k3serversocket.cpp:209
virtual KStreamSocket * accept()
Accepts one incoming connection and return the associated, open socket.
Definition: k3serversocket.cpp:284
virtual KSocketAddress localAddress() const
Returns this socket's local address.
Definition: k3socketdevice.cpp:568
Definition: k3resolver.h:369
typedef ConstIterator
void readyAccept()
This signal is emitted whenever the socket is ready for accepting – i.e., there is at least one conn...
void copyError()
Convenience function to set this object's error code to match that of the socket device.
Definition: k3serversocket.cpp:377
void setAcceptBuffered(bool enable)
Toggles whether the accepted socket will be buffered or not.
Definition: k3serversocket.cpp:279
void setFamily(int families)
Sets the allowed families for the resolutions.
Definition: k3serversocket.cpp:119
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setOpenMode(QFlags< QIODevice::OpenModeFlag > openMode)
KResolver & resolver() const
Returns the internal KResolver object used for looking up the host name and service.
Definition: k3serversocket.cpp:101
virtual KSocketAddress externalAddress() const
Returns this socket's externally visible local address.
Definition: k3socketdevice.cpp:640
virtual bool lookup()
Starts the lookup for peer and local hostnames as well as their services.
Definition: k3serversocket.cpp:147
Definition: k3resolver.h:371
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.