KDECore
k3streamsocket.cpp
Go to the documentation of this file.
void resetError()
Resets the socket error code and the I/O Device's status.
Definition: k3socketbase.cpp:441
virtual bool bind(const QString &node=QString(), const QString &service=QString())=0
Binds this socket to the given nodename and service, or use the default ones if none are given.
void aboutToConnect(const KNetwork::KResolverEntry &remote, bool &skip)
This signal is emitted when the socket is about to connect to an address (but before doing so).
const KResolverResults & localResults() const
Returns the internal list of resolved results for the local address.
Definition: k3clientsocketbase.cpp:108
void connected(const KNetwork::KResolverEntry &remote)
This socket is emitted when the socket successfully connects to a remote address.
void setState(SocketState state)
Sets the socket state to state.
Definition: k3clientsocketbase.cpp:71
SocketState state() const
Returns the current state for this socket.
Definition: k3clientsocketbase.cpp:66
void gotError(int code)
This signal is emitted when this object finds an error.
virtual bool lookup()
Starts the lookup for peer and local hostnames as well as their services.
Definition: k3clientsocketbase.cpp:133
KResolver & peerResolver() const
Returns the internal KResolver object used for looking up the peer host name and service.
Definition: k3clientsocketbase.cpp:93
void copyError()
Convenience function to set this object's error code to match that of the socket device.
Definition: k3clientsocketbase.cpp:453
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.
virtual bool setSocketOptions(int opts)
Sets the socket options.
Definition: k3clientsocketbase.cpp:77
const KResolverResults & peerResults() const
Returns the internal list of resolved results for the peer address.
Definition: k3clientsocketbase.cpp:98
void stateChanged(int newstate)
This signal is emitted whenever the socket state changes.
virtual bool connect(const QString &node=QString(), const QString &service=QString(), OpenMode mode=ReadWrite)=0
Attempts to connect to a given hostname and service, or use the default ones if none are given.
KResolver & localResolver() const
Returns the internal KResolver object used for looking up the local host name and service.
Definition: k3clientsocketbase.cpp:103
int family() const
Retrieves the family associated with this socket address.
Definition: k3resolver.cpp:147
void setServiceName(const QString &service)
Sets the service name to be resolved.
Definition: k3resolver.cpp:348
void setNodeName(const QString &nodename)
Sets the nodename for the resolution.
Definition: k3resolver.cpp:336
virtual int socketOptions() const
Retrieves the socket options that have been set.
Definition: k3socketbase.cpp:92
virtual bool setBlocking(bool enable)
Sets this socket's blocking mode.
Definition: k3socketbase.cpp:97
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
QSocketNotifier * readNotifier() const
Returns a socket notifier for input on this socket.
Definition: k3socketdevice.cpp:647
QSocketNotifier * writeNotifier() const
Returns a socket notifier for output on this socket.
Definition: k3socketdevice.cpp:665
virtual bool poll(bool *input, bool *output, bool *exception=0L, int timeout=-1, bool *timedout=0L)
Executes a poll in the socket, via select(2) or poll(2).
Definition: k3socketdevice.cpp:701
virtual bool connect(const QString &node=QString(), const QString &service=QString(), OpenMode mode=ReadWrite)
Reimplemented from KClientSocketBase.
Definition: k3streamsocket.cpp:115
virtual bool bind(const QString &node=QString(), const QString &service=QString())
Binds this socket to the given nodename and service, or use the default ones if none are given.
Definition: k3streamsocket.cpp:98
KStreamSocket(const QString &node=QString(), const QString &service=QString(), QObject *parent=0L)
Default constructor.
Definition: k3streamsocket.cpp:55
void timedOut()
This signal is emitted when a connection timeout occurs.
int remainingTimeout() const
Retrieves the remaining timeout time (in milliseconds).
Definition: k3streamsocket.cpp:80
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.