KDECore
Go to the documentation of this file.
28 #include <config-network.h>
37 using namespace KNetwork;
38 using namespace KNetwork::Internal;
40 class KNetwork::KBufferedSocketPrivate
45 KBufferedSocketPrivate()
55 d(new KBufferedSocketPrivate)
87 if (!d->output || d->output->isEmpty())
104 return d->input->length();
125 if (d->input->isEmpty())
130 return d->input->consumeBuffer(data, maxlen);
141 if (d->input->isEmpty())
146 return d->input->consumeBuffer(data, maxlen,
false);
164 if (d->output->isFull())
177 return d->output->feedBuffer(data, len);
186 if (!enable && d->input)
194 if (enable &&
state() !=
Connected && d->input && !d->input->isEmpty())
203 if (!enable && d->output && !d->output->isEmpty())
232 QMutexLocker locker(
mutex());
238 else if (d->input == 0L)
246 QMutexLocker locker(
mutex());
252 else if (d->output == 0L)
263 return d->output->length();
278 return d->input->canReadLine();
283 return d->input->readLine(data, maxSize);
333 if (d->input && !d->input->isEmpty())
345 if (d->output && !d->output->isEmpty() &&
373 if (d->output->isEmpty())
379 emit bytesWritten(len);
384 else if (d->output && d->output->isEmpty() &&
state() ==
Closing)
390 #include "k3bufferedsocket.moc"
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 16 2013 17:47:31 by
doxygen 1.8.1.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.