KDECore
ksocketaddress.cpp File Reference
#include "config.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.h>
#include <qobject.h>
#include "klocale.h"
#include "ksocketaddress.h"
#include "netsupp.h"
Include dependency graph for ksocketaddress.cpp:
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(Q_UINT16) |
#define | MIN_SOCKADDR_UN_LEN (sizeof(Q_UINT16) + sizeof(char)) |
#define | SOCKADDR_IN6_LEN sizeof(our_sockaddr_in6) |
#define | SOCKADDR_IN_LEN sizeof(sockaddr_in) |
Functions | |
static bool | check_v4mapped (const Q_UINT32 *v6addr, Q_UINT32 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 236 of file ksocketaddress.cpp.
#define MIN_SOCKADDR_LEN sizeof(Q_UINT16) |
Definition at line 234 of file ksocketaddress.cpp.
#define MIN_SOCKADDR_UN_LEN (sizeof(Q_UINT16) + sizeof(char)) |
Definition at line 238 of file ksocketaddress.cpp.
#define SOCKADDR_IN6_LEN sizeof(our_sockaddr_in6) |
Definition at line 237 of file ksocketaddress.cpp.
#define SOCKADDR_IN_LEN sizeof(sockaddr_in) |
Definition at line 235 of file ksocketaddress.cpp.
Function Documentation
static bool check_v4mapped | ( | const Q_UINT32 * | v6addr, | |
Q_UINT32 | v4addr | |||
) | [static] |
Definition at line 77 of file ksocketaddress.cpp.
Variable Documentation
const KIpAddress KIpAddress::localhostV4 & localhostV4_data = { 127, 0, 0, 1 } [static] |
Definition at line 68 of file ksocketaddress.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 69 of file ksocketaddress.cpp.