KDECore
k3sockssocketdevice.cpp
Go to the documentation of this file.
192 static int socks_read_common(int sockfd, char *data, quint64 maxlen, KSocketAddress* from, ssize_t &retval, bool peek = false)
198 retval = KSocks::self()->recvfrom(sockfd, data, maxlen, peek ? MSG_PEEK : 0, from->address(), &len);
KSocketAddress & setLength(quint16 len)
Sets the length of this socket structure.
Definition: k3socketaddress.cpp:480
void resetError()
Resets the socket error code and the I/O Device's status.
Definition: k3socketbase.cpp:441
virtual KSocketAddress localAddress() const
Overrides getting socket address.
Definition: k3sockssocketdevice.cpp:327
const sockaddr * address() const
Returns the socket address structure, to be passed down to low level functions.
Definition: k3socketaddress.cpp:449
virtual KSocketAddress peerAddress() const
Overrides getting peer address.
Definition: k3sockssocketdevice.cpp:356
virtual bool bind(const KResolverEntry &address)
Overrides binding.
Definition: k3sockssocketdevice.cpp:74
The low-level class for SOCKS proxying.
Definition: k3sockssocketdevice.h:42
static void addNewImpl(KSocketDeviceFactoryBase *factory, int capabilities)
Adds a factory of KSocketDevice objects to the list, along with its capabilities flag.
Definition: k3socketdevice.cpp:915
virtual bool create(int family, int type, int protocol)
Creates a socket but don't connect or bind anywhere.
Definition: k3socketdevice.cpp:261
virtual qint64 writeBlock(const char *data, quint64 len)
Overrides writing.
Definition: k3sockssocketdevice.cpp:300
virtual qint64 peekBlock(char *data, quint64 maxlen)
Overrides peeking.
Definition: k3sockssocketdevice.cpp:258
virtual bool poll(bool *input, bool *output, bool *exception=0L, int timeout=-1, bool *timedout=0L)
Overrides polling.
Definition: k3sockssocketdevice.cpp:391
static int socks_read_common(int sockfd, char *data, quint64 maxlen, KSocketAddress *from, ssize_t &retval, bool peek=false)
Definition: k3sockssocketdevice.cpp:192
KSocketAddress address() const
Retrieves the socket address associated with this entry.
Definition: k3resolver.cpp:135
static KSocketDeviceFactoryBase * setDefaultImpl(KSocketDeviceFactoryBase *factory)
Sets the default KSocketDevice implementation to use and return the old factory.
Definition: k3socketdevice.cpp:907
This class provides functionality for creating and registering socket implementations.
Definition: k3socketdevice.h:401
virtual KSocketAddress externalAddress() const
Overrides getting external address.
Definition: k3sockssocketdevice.cpp:385
quint16 length() const
Retrieves the length of the socket address structure.
Definition: k3resolver.cpp:141
void output(QList< Action > actions, QHash< QString, QString > domain)
Definition: fake/kauth-policy-gen-polkit.cpp:41
quint16 length() const
Returns the length of this socket address structure.
Definition: k3socketaddress.cpp:473
virtual qint64 readBlock(char *data, quint64 maxlen)
Overrides reading.
Definition: k3sockssocketdevice.cpp:216
virtual bool setBlocking(bool enable)
Sets this socket's blocking mode.
Definition: k3socketbase.cpp:97
virtual bool connect(const KResolverEntry &address)
Overrides connection.
Definition: k3sockssocketdevice.cpp:119
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.