Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include <glib.h>
#include <gio/gio-visibility.h>
#include <sys/types.h>
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <resolv.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <net/if.h>
#include <arpa/inet.h>
#include <arpa/nameser.h>
Go to the source code of this file.
Macros | |
#define | T_SRV 33 |
#define | _PATH_RESCONF "/etc/resolv.conf" |
#define | CMSG_LEN(len) ((size_t)CMSG_DATA((struct cmsghdr *)NULL) + (len)) |
#define | GLIB_ALIGN_TO_SIZEOF(len, obj) (((len) + sizeof (obj) - 1) & ~(sizeof (obj) - 1)) |
#define | CMSG_SPACE(len) GLIB_ALIGN_TO_SIZEOF (CMSG_LEN (len), struct cmsghdr) |
Functions | |
G_BEGIN_DECLS GIO_AVAILABLE_IN_2_36 void | g_networking_init (void) |
#define _PATH_RESCONF "/etc/resolv.conf" |
Definition at line 59 of file gnetworking.h.
#define CMSG_LEN | ( | len | ) | ((size_t)CMSG_DATA((struct cmsghdr *)NULL) + (len)) |
Definition at line 66 of file gnetworking.h.
#define CMSG_SPACE | ( | len | ) | GLIB_ALIGN_TO_SIZEOF (CMSG_LEN (len), struct cmsghdr) |
Definition at line 72 of file gnetworking.h.
#define GLIB_ALIGN_TO_SIZEOF | ( | len, | |
obj ) (((len) + sizeof (obj) - 1) & ~(sizeof (obj) - 1)) |
Definition at line 71 of file gnetworking.h.
#define T_SRV 33 |
Definition at line 55 of file gnetworking.h.
G_BEGIN_DECLS GIO_AVAILABLE_IN_2_36 void g_networking_init | ( | void | ) |