ksockssocketdevice.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
#ifndef KSOCKSSOCKETDEVICE_H
00021
#define KSOCKSSOCKETDEVICE_H
00022
00023
#include "ksocketdevice.h"
00024
00025
namespace KNetwork {
00026
00040 class KSocksSocketDevice:
public KSocketDevice
00041 {
00042
public:
00046
KSocksSocketDevice(
const KSocketBase* = 0L);
00047
00051
explicit KSocksSocketDevice(
int fd);
00052
00056
virtual ~KSocksSocketDevice();
00057
00061
virtual int capabilities()
const;
00062
00066
virtual bool bind(
const KResolverEntry& address);
00067
00071
virtual bool listen(
int backlog);
00072
00076
virtual bool connect(
const KResolverEntry& address);
00077
00081
virtual KSocksSocketDevice*
accept();
00082
00086
virtual Q_LONG
readBlock(
char *data, Q_ULONG maxlen);
00087
virtual Q_LONG
readBlock(
char *data, Q_ULONG maxlen,
KSocketAddress& from);
00088
00092
virtual Q_LONG
peekBlock(
char *data, Q_ULONG maxlen);
00093
virtual Q_LONG
peekBlock(
char *data, Q_ULONG maxlen,
KSocketAddress& from);
00094
00098
virtual Q_LONG
writeBlock(
const char *data, Q_ULONG len);
00099
virtual Q_LONG
writeBlock(
const char *data, Q_ULONG len,
const KSocketAddress& to);
00100
00104
virtual KSocketAddress localAddress()
const;
00105
00109
virtual KSocketAddress peerAddress()
const;
00110
00114
virtual KSocketAddress externalAddress()
const;
00115
00119
virtual bool poll(
bool* input,
bool* output,
bool* exception = 0L,
00120
int timeout = -1,
bool* timedout = 0L);
00121 };
00122
00123 }
00124
00125
#endif
This file is part of the documentation for kdecore Library Version 3.3.0.