KDECore
k3clientsocketbase.h
Go to the documentation of this file.
virtual qint64 readData(char *data, qint64 maxlen, KSocketAddress *from)
Reads data from a socket.
Definition k3clientsocketbase.cpp:316
virtual qint64 waitForMore(int msecs, bool *timeout=0L)
Waits for more data.
Definition k3clientsocketbase.cpp:304
bool emitsReadyWrite() const
Returns true if the readyWrite signal is set to be emitted.
Definition k3clientsocketbase.cpp:379
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 void stateChanging(SocketState newState)
This function is called by setState() whenever the state changes.
Definition k3clientsocketbase.cpp:429
virtual void enableRead(bool enable)
Enables the emission of the readyRead signal.
Definition k3clientsocketbase.cpp:369
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).
virtual void slotReadActivity()
This slot is connected to the read notifier's signal meaning the socket can read more data.
Definition k3clientsocketbase.cpp:394
void connected(const KNetwork::KResolverEntry &remote)
This socket is emitted when the socket successfully connects to a remote address.
virtual void enableWrite(bool enable)
Enables the emission of the readyWrite signal.
Definition k3clientsocketbase.cpp:384
void closed()
This signal is emitted when the socket completes the closing/shut down process.
bool emitsReadyRead() const
Returns true if the readyRead signal is set to be emitted.
Definition k3clientsocketbase.cpp:364
SocketState state() const
Returns the current state for this socket.
Definition k3clientsocketbase.cpp:66
virtual qint64 bytesAvailable() const
Returns the number of bytes available on this socket.
Definition k3clientsocketbase.cpp:296
void readyWrite()
This signal is emitted whenever the socket is ready for writing – i.e., whenever there's space availa...
virtual qint64 writeData(const char *data, qint64 len, const KSocketAddress *to)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition k3clientsocketbase.cpp:340
virtual KSocketAddress peerAddress() const
Returns the peer socket address.
Definition k3clientsocketbase.cpp:359
void gotError(int code)
This signal is emitted when this object finds an error.
virtual qint64 peekData(char *data, qint64 maxlen, KSocketAddress *from)
Peeks data from the socket.
Definition k3clientsocketbase.cpp:328
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 void slotWriteActivity()
This slot is connected to the write notifier's signal meaning the socket can write more data.
Definition k3clientsocketbase.cpp:400
virtual KSocketAddress localAddress() const
Returns the local socket address.
Definition k3clientsocketbase.cpp:354
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.
virtual bool flush()
This call is not supported on unbuffered sockets.
Definition k3clientsocketbase.cpp:290
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.