KDECore
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <QtCore/QBool>
#include <kdebug.h>
#include <netdb.h>
#include <config.h>
#include <config-network.h>
#include "klocale.h"
#include "netsupp.h"
Go to the source code of this file.
|
static void | add_dwords (char *buf, quint16 *dw, int count) |
|
static void | dofreeaddrinfo (struct addrinfo *ai) |
|
static void | findport (unsigned short port, char *serv, size_t servlen, int flags) |
|
void | freeaddrinfo (struct addrinfo *p) |
|
char * | gai_strerror (int errorcode) |
|
int | getaddrinfo (const char *name, const char *serv, const struct addrinfo *hint, struct addrinfo **result) |
|
int | getnameinfo (const struct sockaddr *sa, kde_socklen_t salen, char *host, size_t hostlen, char *serv, size_t servlen, int flags) |
|
static int | inet_lookup (const char *name, int portnum, int protonum, struct addrinfo *p, const struct addrinfo *hint, struct addrinfo **result) |
|
const char * | inet_ntop (int af, const void *cp, char *buf, size_t len) |
|
int | inet_pton (int af, const char *cp, void *buf) |
|
void | kde_freeaddrinfo (struct kde_addrinfo *ai) |
|
int | kde_getaddrinfo (const char *name, const char *service, const struct addrinfo *hint, struct kde_addrinfo **result) |
|
static int | make_inet (const char *name, int portnum, int protonum, struct addrinfo *p, const struct addrinfo *hint, struct addrinfo **result) |
|
static struct addrinfo * | make_unix (const char *name, const char *serv) |
|
#define KRF_CAN_RESOLVE_IPV4 0x200 /* if present, the resolver can resolve to IPv4 */ |
#define KRF_CAN_RESOLVE_IPV6 0x400 /* if present, the resolver can resolve to IPv6 */ |
#define KRF_CAN_RESOLVE_UNIX 0x100 /* if present, the resolver can resolve Unix sockets */ |
#define KRF_KNOWS_AF_INET6 0x01 /* if present, the code knows about AF_INET6 */ |
#define KRF_USING_OWN_GETADDRINFO 0x02 /* if present, we are using our own getaddrinfo */ |
#define KRF_USING_OWN_INET_NTOP 0x04 /* if present, we are using our own inet_ntop */ |
#define KRF_USING_OWN_INET_PTON 0x08 /* if present, we are using our own inet_pton */ |
#define offsetof |
( |
|
TYPE, |
|
|
|
MEMBER |
|
) |
| ((size_t) &((TYPE *)0)->MEMBER) |
static void add_dwords |
( |
char * |
buf, |
|
|
quint16 * |
dw, |
|
|
int |
count |
|
) |
| |
|
static |
static void dofreeaddrinfo |
( |
struct addrinfo * |
ai | ) |
|
|
static |
static void findport |
( |
unsigned short |
port, |
|
|
char * |
serv, |
|
|
size_t |
servlen, |
|
|
int |
flags |
|
) |
| |
|
static |
void freeaddrinfo |
( |
struct addrinfo * |
ai | ) |
|
char* gai_strerror |
( |
int |
errorcode | ) |
|
int getaddrinfo |
( |
const char * |
name, |
|
|
const char * |
service, |
|
|
const struct addrinfo * |
hint, |
|
|
struct addrinfo ** |
result |
|
) |
| |
int getnameinfo |
( |
const struct sockaddr * |
sa, |
|
|
kde_socklen_t |
salen, |
|
|
char * |
host, |
|
|
size_t |
hostlen, |
|
|
char * |
serv, |
|
|
size_t |
servlen, |
|
|
int |
flags |
|
) |
| |
static int inet_lookup |
( |
const char * |
name, |
|
|
int |
portnum, |
|
|
int |
protonum, |
|
|
struct addrinfo * |
p, |
|
|
const struct addrinfo * |
hint, |
|
|
struct addrinfo ** |
result |
|
) |
| |
|
static |
TODO Try and use gethostbyname2_r before gethostbyname2 and gethostbyname.
Definition at line 379 of file netsupp.cpp.
const char* inet_ntop |
( |
int |
af, |
|
|
const void * |
cp, |
|
|
char * |
buf, |
|
|
size_t |
len |
|
) |
| |
int inet_pton |
( |
int |
af, |
|
|
const char * |
cp, |
|
|
void * |
buf |
|
) |
| |
int kde_getaddrinfo |
( |
const char * |
name, |
|
|
const char * |
service, |
|
|
const struct addrinfo * |
hint, |
|
|
struct kde_addrinfo ** |
result |
|
) |
| |
static int make_inet |
( |
const char * |
name, |
|
|
int |
portnum, |
|
|
int |
protonum, |
|
|
struct addrinfo * |
p, |
|
|
const struct addrinfo * |
hint, |
|
|
struct addrinfo ** |
result |
|
) |
| |
|
static |
static struct addrinfo* make_unix |
( |
const char * |
name, |
|
|
const char * |
serv |
|
) |
| |
|
static |
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:10 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.