KDECore
k3bufferedsocket.h
Go to the documentation of this file.
virtual qint64 peekData(char *data, qint64 maxlen, KSocketAddress *from)
Peeks data from the socket.
Definition k3bufferedsocket.cpp:135
virtual void setSocketDevice(KSocketDevice *device)
Be sure to catch new devices.
Definition k3bufferedsocket.cpp:69
virtual void slotReadActivity()
Slot called when there's read activity.
Definition k3bufferedsocket.cpp:296
virtual void slotWriteActivity()
Slot called when there's write activity.
Definition k3bufferedsocket.cpp:343
virtual void stateChanging(SocketState newState)
Catch connection to clear the buffers.
Definition k3bufferedsocket.cpp:212
virtual qint64 writeData(const char *data, qint64 len, const KSocketAddress *to)
Writes data to the socket.
Definition k3bufferedsocket.cpp:151
void setInputBuffering(bool enable)
Sets the use of input buffering.
Definition k3bufferedsocket.cpp:230
virtual qint64 readData(char *data, qint64 maxlen, KSocketAddress *from)
Reads data from a socket.
Definition k3bufferedsocket.cpp:119
virtual void closeNow()
Closes the socket and discards any output data that had been buffered with writeData() but that had n...
Definition k3bufferedsocket.cpp:266
virtual qint64 waitForMore(int msecs, bool *timeout=0L)
Make use of buffers.
Definition k3bufferedsocket.cpp:107
virtual void close()
Closes the socket for new data, but allow data that had been buffered for output with writeData() to ...
Definition k3bufferedsocket.cpp:85
void waitForConnect()
Blocks until the connection is either established, or completely failed.
Definition k3bufferedsocket.cpp:286
virtual bool setSocketOptions(int opts)
Buffered sockets can only operate in non-blocking mode.
Definition k3bufferedsocket.cpp:76
void setOutputBuffering(bool enable)
Sets the use of output buffering.
Definition k3bufferedsocket.cpp:244
virtual qint64 bytesToWrite() const
Returns the length of the output buffer.
Definition k3bufferedsocket.cpp:258
virtual bool canReadLine() const
Returns true if a line can be read with readLine()
Definition k3bufferedsocket.cpp:273
virtual qint64 readLineData(char *data, qint64 maxSize)
Improve the readLine performance.
Definition k3bufferedsocket.cpp:281
KBufferedSocket(const QString &node=QString(), const QString &service=QString(), QObject *parent=0L)
Default constructor.
Definition k3bufferedsocket.cpp:52
KStreamSocket(const QString &node=QString(), const QString &service=QString(), QObject *parent=0L)
Default constructor.
Definition k3streamsocket.cpp:55
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.