KDECore
Go to the documentation of this file.
25 #ifndef KBUFFEREDSOCKET_H
26 #define KBUFFEREDSOCKET_H
31 #include <QtCore/QObject>
32 #include <QtCore/QByteArray>
33 #include <QtCore/QList>
37 class KBufferedSocketPrivate;
69 explicit KBufferedSocket(
const QString& node = QString(),
const QString& service = QString(),
86 virtual bool setSocketOptions(
int opts);
100 virtual qint64 bytesAvailable()
const;
105 virtual qint64 waitForMore(
int msecs,
bool *
timeout = 0L);
110 virtual void enableRead(
bool enable);
115 virtual void enableWrite(
bool enable);
120 void setInputBuffering(
bool enable);
125 void setOutputBuffering(
bool enable);
130 virtual qint64 bytesToWrite()
const;
138 virtual void closeNow();
143 virtual bool canReadLine()
const;
151 void waitForConnect();
159 virtual qint64 readData(
char *data, qint64 maxlen,
KSocketAddress *from);
166 virtual qint64 peekData(
char *data, qint64 maxlen,
KSocketAddress *from);
173 virtual qint64 writeData(
const char *data, qint64 len,
const KSocketAddress* to);
178 virtual qint64 readLineData(
char *data, qint64 maxSize);
189 virtual void slotReadActivity();
194 virtual void slotWriteActivity();
202 void bytesWritten(
int bytes);
209 KBufferedSocketPrivate*
const d;
SocketState
Socket states.
A generic socket address.
Low-level socket functionality.
A namespace to store all networking-related (socket) classes.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jan 26 2021 00:00:00 by
doxygen 1.9.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.