ksocks.h
int getpeername(int s, sockaddr *name, ksocklen_t *namelen)
This is the re-implementation of libc's function of the same name.
Definition ksocks.cpp:548
signed long int write(int fd, const void *buf, unsigned long int count)
This is the re-implementation of libc's function of the same name.
Definition ksocks.cpp:494
int listen(int s, int backlog)
This is the re-implementation of libc's function of the same name.
Definition ksocks.cpp:580
int recvfrom(int s, void *buf, unsigned long int len, int flags, sockaddr *from, ksocklen_t *fromlen)
This is the re-implementation of libc's function of the same name.
Definition ksocks.cpp:501
int getsockname(int s, sockaddr *name, ksocklen_t *namelen)
This is the re-implementation of libc's function of the same name.
Definition ksocks.cpp:536
bool hasWorkingAsyncConnect()
Returns whether asynchronous connects work with the selected SOCKS impementation.
Definition ksocks.cpp:468
static void setConfig(TDEConfigBase *config)
Set this before the first call to KSocks::self() and it will use config to read its configuration fro...
Definition ksocks.cpp:226
int sendto(int s, const void *msg, unsigned long int len, int flags, const sockaddr *to, ksocklen_t tolen)
This is the re-implementation of libc's function of the same name.
Definition ksocks.cpp:514
signed long int read(int fd, void *buf, unsigned long int count)
This is the re-implementation of libc's function of the same name.
Definition ksocks.cpp:487
void enableSocks()
Enable the use of SOCKS immediately if hasSocks() is true.
Definition ksocks.cpp:463
int recv(int s, void *buf, unsigned long int len, int flags)
This is the re-implementation of libc's function of the same name.
Definition ksocks.cpp:522
int send(int s, const void *msg, unsigned long int len, int flags)
This is the re-implementation of libc's function of the same name.
Definition ksocks.cpp:529
int bind(int sockfd, sockaddr *my_addr, ksocklen_t addrlen)
This is the re-implementation of libc's function of the same name.
Definition ksocks.cpp:593
int select(int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
This is the re-implementation of libc's function of the same name.
Definition ksocks.cpp:572
static void disable()
Set this before the first call to KSocks::self() and it will fail to initialize SOCKS.
Definition ksocks.cpp:206
int accept(int s, sockaddr *addr, ksocklen_t *addrlen)
This is the re-implementation of libc's function of the same name.
Definition ksocks.cpp:560
int connect(int sockfd, const sockaddr *serv_addr, ksocklen_t addrlen)
This is the re-implementation of libc's function of the same name.
Definition ksocks.cpp:479
static bool activated()
Checks whether KSocks has been started (ie someone called self()).
Definition ksocks.cpp:239
Little helper class to clean up static objects that are held as pointer.
Definition kstaticdeleter.h:74
Trinity API Reference