KDECore
Go to the documentation of this file.
59 #include <QtCore/QIODevice>
60 #include <QtCore/QString>
72 class KSocketBasePrivate;
111 AddressReuseable = 0x02,
195 virtual bool setSocketOptions(
int opts);
206 virtual int socketOptions()
const;
224 virtual bool setBlocking(
bool enable);
232 bool blocking()
const;
248 virtual bool setAddressReuseable(
bool enable);
256 bool addressReuseable()
const;
273 virtual bool setIPv6Only(
bool enable);
281 bool isIPv6Only()
const;
294 virtual bool setBroadcast(
bool enable);
302 bool broadcast()
const;
317 virtual bool setNoDelay(
bool enable);
324 bool noDelay()
const;
370 int setRequestedCapabilities(
int add,
int remove = 0);
377 bool hasDevice()
const;
396 SocketError error()
const;
418 QMutex* mutex()
const;
426 static QString errorString(SocketError code);
436 static bool isFatalError(
int code);
441 void unsetSocketDevice();
446 KSocketBasePrivate*
const d;
488 virtual bool open(OpenMode mode);
521 OpenMode mode = ReadWrite) = 0;
538 virtual bool disconnect() = 0;
543 virtual bool isSequential()
const;
549 virtual qint64 size()
const;
555 virtual qint64 pos()
const;
561 virtual bool seek(
qint64);
567 virtual bool atEnd()
const;
583 QByteArray read(
qint64 len);
640 qint64 write(
const QByteArray& data);
666 virtual qint64 waitForMore(
int msecs,
bool *
timeout = 0L) = 0;
671 void ungetChar(
char);
813 virtual bool listen(
int backlog) = 0;
819 virtual void close() = 0;
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Apr 16 2013 19:11:40 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.