KDECore
Go to the documentation of this file.
21 #if defined(I_KNOW_KSOCKS_ISNT_PUBLIC)
26 #include <QtCore/QStringList>
27 #include <sys/types.h>
28 #include <sys/socket.h>
49 class KDECORE_EXPORT_DEPRECATED KSocks {
57 static KSocks *
self();
63 static bool activated();
91 bool hasWorkingAsyncConnect();
100 int connect (
int sockfd,
const sockaddr *serv_addr,
101 kde_socklen_t addrlen);
106 signed long int read (
int fd,
void *buf,
unsigned long int count);
111 signed long int write (
int fd,
const void *buf,
unsigned long int count);
116 int recvfrom (
int s,
void *buf,
unsigned long int len,
int flags,
117 sockaddr *from, kde_socklen_t *fromlen);
122 int sendto (
int s,
const void *msg,
unsigned long int len,
int flags,
123 const sockaddr *to, kde_socklen_t tolen);
128 int recv (
int s,
void *buf,
unsigned long int len,
int flags);
133 int send (
int s,
const void *msg,
unsigned long int len,
int flags);
138 int getsockname (
int s, sockaddr *name, kde_socklen_t *namelen);
143 int getpeername (
int s, sockaddr *name, kde_socklen_t *namelen);
148 int accept (
int s, sockaddr *addr, kde_socklen_t *addrlen);
153 int select (
int n, fd_set *readfds, fd_set *writefds,
154 fd_set *exceptfds,
struct timeval *
timeout);
159 int listen (
int s,
int backlog);
165 int bind (
int sockfd, sockaddr *my_addr,
166 kde_socklen_t addrlen);
167 int bind (
int sockfd,
const sockaddr *my_addr,
168 kde_socklen_t addrlen);
181 static void disable();
196 static bool _disabled;
200 KSocksPrivate *
const d;
QTcpServer * listen(const QString &protocol, const QHostAddress &address=QHostAddress::Any, quint16 port=0, QObject *parent=0)
Opens a TCP/IP socket for listening protocol protocol, binding only at address address.
KSharedConfigPtr config()
Returns the general config object.
A class for one specific group in a KConfig object.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:10 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.