wut  v1.7.0
Wii U Toolchain
in.h
Go to the documentation of this file.
1 #pragma once
2 #include <stdint.h>
3 #include <sys/socket.h>
4 
5 #define INADDR_ANY 0x00000000
6 #define INADDR_LOOPBACK 0x7F000001
7 #define INADDR_BROADCAST 0xFFFFFFFF
8 #define INADDR_NONE 0xFFFFFFFF
9 
10 #define INET_ADDRSTRLEN 16
11 
12 #define IPPROTO_IP 0
13 #define IPPROTO_TCP 6
14 #define IPPROTO_UDP 17
15 
16 #define IP_TOS 3
17 #define IP_TTL 4
18 #define IP_MULTICAST_IF 9
19 #define IP_MULTICAST_TTL 10
20 #define IP_MULTICAST_LOOP 11
21 #define IP_ADD_MEMBERSHIP 12
22 #define IP_DROP_MEMBERSHIP 13
23 #define IP_UNKNOWN 14
24 
25 typedef uint16_t in_port_t;
26 typedef uint32_t in_addr_t;
27 
28 struct in_addr
29 {
31 };
32 
34 {
37  struct in_addr sin_addr;
38  unsigned char sin_zero[8];
39 };
40 
41 struct ip_mreq
42 {
43  struct in_addr imr_multiaddr;
44  struct in_addr imr_interface;
45 };
struct in_addr sin_addr
Definition: in.h:37
in_port_t sin_port
Definition: in.h:36
struct in_addr imr_interface
Definition: in.h:44
struct in_addr imr_multiaddr
Definition: in.h:43
in_addr_t s_addr
Definition: in.h:30
uint16_t in_port_t
Definition: in.h:25
uint32_t in_addr_t
Definition: in.h:26
unsigned char sin_zero[8]
Definition: in.h:38
sa_family_t sin_family
Definition: in.h:35
Definition: in.h:29
Definition: in.h:42
Definition: in.h:34
uint16_t sa_family_t
Definition: socket.h:57