20 #ifndef KSOCKSSOCKETDEVICE_H
21 #define KSOCKSSOCKETDEVICE_H
23 #include "tdesocketdevice.h"
61 virtual int capabilities()
const;
71 virtual bool listen(
int backlog);
86 virtual TQ_LONG readBlock(
char *data, TQ_ULONG maxlen);
87 virtual TQ_LONG readBlock(
char *data, TQ_ULONG maxlen,
TDESocketAddress& from);
92 virtual TQ_LONG peekBlock(
char *data, TQ_ULONG maxlen);
93 virtual TQ_LONG peekBlock(
char *data, TQ_ULONG maxlen,
TDESocketAddress& from);
98 virtual TQ_LONG writeBlock(
const char *data, TQ_ULONG len);
99 virtual TQ_LONG writeBlock(
const char *data, TQ_ULONG len,
const TDESocketAddress& to);
119 virtual bool poll(
bool* input,
bool* output,
bool* exception = 0L,
120 int timeout = -1,
bool* timedout = 0L);
123 static void initSocks();
The low-level class for SOCKS proxying.
A generic socket address.
Basic socket functionality.
Low-level socket functionality.
A namespace to store all networking-related (socket) classes.