KDECore
Go to the documentation of this file. 25 #ifndef KCLIENTSOCKETBASE_H 26 #define KCLIENTSOCKETBASE_H 28 #include <QtCore/QObject> 29 #include <QtCore/QString> 37 class KClientSocketBasePrivate;
104 SocketState state()
const;
110 virtual bool setSocketOptions(
int opts);
157 void setResolutionEnabled(
bool enable);
165 void setFamily(
int families);
249 OpenMode mode = ReadWrite) = 0;
256 OpenMode mode = ReadWrite);
262 virtual bool disconnect();
269 virtual bool open(OpenMode mode);
277 virtual void close();
283 virtual bool flush();
289 virtual qint64 bytesAvailable()
const;
309 bool emitsReadyRead()
const;
317 virtual void enableRead(
bool enable);
322 bool emitsReadyWrite()
const;
330 virtual void enableWrite(
bool enable);
344 virtual void slotReadActivity();
355 virtual void slotWriteActivity();
358 void lookupFinishedSlot();
369 void stateChanged(
int newstate);
376 void gotError(
int code);
469 void setState(SocketState state);
480 virtual void stateChanging(SocketState newState);
492 KClientSocketBasePrivate*
const d;
Abstract class for active sockets.
Name and service resolution class.
A generic socket address.
Name and service resolution results.
int open(const QString &pathname, int flags, mode_t mode)
A namespace to store all networking-related (socket) classes.
SocketState
Socket states.
static QByteArray lookup(const KConfigIniBackend::BufferFragment &fragment, QHash< KConfigIniBackend::BufferFragment, QByteArray > *cache)
Abstract client socket class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Wed Apr 3 2019 20:27:29 by
doxygen 1.8.15 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.