KDECore
k3streamsocket.cpp
Go to the documentation of this file.
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...
KSocketDevice * socketDevice() const
Retrieves the socket implementation used on this socket.
Definition: k3socketbase.cpp:148
SocketState state() const
Returns the current state for this socket.
Definition: k3clientsocketbase.cpp:66
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
int remainingTimeout() const
Retrieves the remaining timeout time (in milliseconds).
Definition: k3streamsocket.cpp:80
int timeout() const
Retrieves the timeout value (in milliseconds).
Definition: k3streamsocket.cpp:75
void resetError()
Resets the socket error code and the I/O Device's status.
Definition: k3socketbase.cpp:441
QSocketNotifier * writeNotifier() const
Returns a socket notifier for output on this socket.
Definition: k3socketdevice.cpp:665
virtual bool connect(const KResolverEntry &address, OpenMode mode=ReadWrite)
Connect to a remote host.
Definition: k3socketdevice.cpp:345
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...
virtual bool lookup()
Starts the lookup for peer and local hostnames as well as their services.
Definition: k3clientsocketbase.cpp:133
KResolver & localResolver() const
Returns the internal KResolver object used for looking up the local host name and service...
Definition: k3clientsocketbase.cpp:103
void gotError(int code)
This signal is emitted when this object finds an error.
void hostFound()
This signal is emitted when the lookup is successfully completed.
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
virtual bool setSocketOptions(int opts)
This implementation sets the options on the socket.
Definition: k3socketdevice.cpp:137
virtual bool setSocketOptions(int opts)
Sets the socket options.
Definition: k3clientsocketbase.cpp:77
void setServiceName(const QString &service)
Sets the service name to be resolved.
Definition: k3resolver.cpp:348
bool isNull() const
QSocketNotifier * readNotifier() const
Returns a socket notifier for input on this socket.
Definition: k3socketdevice.cpp:647
void timedOut()
This signal is emitted when a connection timeout occurs.
void copyError()
Convenience function to set this object's error code to match that of the socket device.
Definition: k3clientsocketbase.cpp:453
virtual bool bind(const KResolverEntry &address)
Binds this socket to the given address.
Definition: k3socketdevice.cpp:293
bool isNull() const
bool isEmpty() const
Definition: k3socketbase.h:145
const KResolverResults & peerResults() const
Returns the internal list of resolved results for the peer address.
Definition: k3clientsocketbase.cpp:98
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)...
void setState(SocketState state)
Sets the socket state to state.
Definition: k3clientsocketbase.cpp:71
Definition: k3resolver.h:346
void stateChanged(int newstate)
This signal is emitted whenever the socket state changes.
iterator end()
void bound(const KNetwork::KResolverEntry &local)
This signal is emitted when the socket successfully binds to an address.
void setNodeName(const QString &nodename)
Sets the nodename for the resolution.
Definition: k3resolver.cpp:336
void setEnabled(bool enable)
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
typedef ConstIterator
int family() const
Retrieves the family associated with this socket address.
Definition: k3resolver.cpp:147
virtual bool connect(const QString &node=QString(), const QString &service=QString(), OpenMode mode=ReadWrite)
Reimplemented from KClientSocketBase.
Definition: k3streamsocket.cpp:115
Definition: k3socketbase.h:160
virtual bool setBlocking(bool enable)
Sets this socket's blocking mode.
Definition: k3socketbase.cpp:97
const KResolverResults & localResults() const
Returns the internal list of resolved results for the local address.
Definition: k3clientsocketbase.cpp:108
virtual int socketOptions() const
Retrieves the socket options that have been set.
Definition: k3socketbase.cpp:92
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
KResolver & peerResolver() const
Returns the internal KResolver object used for looking up the peer host name and service.
Definition: k3clientsocketbase.cpp:93
void connected(const KNetwork::KResolverEntry &remote)
This socket is emitted when the socket successfully connects to a remote address. ...
iterator begin()
singleShot
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.