KDECore
k3socketaddress.cpp File Reference
#include "k3socketaddress.h"
#include <config.h>
#include <config-network.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <QFile>
#include <QObject>
#include "klocale.h"
#include "netsupp.h"

Go to the source code of this file.
Defines | |
#define | MIN_SOCKADDR_IN6_LEN ((unsigned long) &(((our_sockaddr_in6*)0)->sin6_scope_id)) |
#define | MIN_SOCKADDR_LEN sizeof(quint16) |
#define | MIN_SOCKADDR_UN_LEN (sizeof(quint16) + sizeof(char)) |
#define | SOCKADDR_IN6_LEN sizeof(our_sockaddr_in6) |
#define | SOCKADDR_IN_LEN sizeof(sockaddr_in) |
Functions | |
static bool | check_v4mapped (const quint32 *v6addr, quint32 v4addr) |
Variables | |
static const char | localhostV4_data [] = { 127, 0, 0, 1 } |
static const char | localhostV6_data [] = { 0,0, 0,0, 0,0, 0,0, 0,0, 0,0, 0,0, 0,1 } |
Define Documentation
#define MIN_SOCKADDR_IN6_LEN ((unsigned long) &(((our_sockaddr_in6*)0)->sin6_scope_id)) |
Definition at line 234 of file k3socketaddress.cpp.
#define MIN_SOCKADDR_LEN sizeof(quint16) |
Definition at line 232 of file k3socketaddress.cpp.
#define MIN_SOCKADDR_UN_LEN (sizeof(quint16) + sizeof(char)) |
Definition at line 236 of file k3socketaddress.cpp.
#define SOCKADDR_IN6_LEN sizeof(our_sockaddr_in6) |
Definition at line 235 of file k3socketaddress.cpp.
#define SOCKADDR_IN_LEN sizeof(sockaddr_in) |
Definition at line 233 of file k3socketaddress.cpp.
Function Documentation
Definition at line 81 of file k3socketaddress.cpp.
Variable Documentation
const KIpAddress KIpAddress::localhostV4 & localhostV4_data = { 127, 0, 0, 1 } [static] |
Definition at line 72 of file k3socketaddress.cpp.
const KIpAddress KIpAddress::localhostV6 & localhostV6_data = { 0,0, 0,0, 0,0, 0,0, 0,0, 0,0, 0,0, 0,1 } [static] |
Definition at line 73 of file k3socketaddress.cpp.