wut  v1.7.0
Wii U Toolchain
inet.h
Go to the documentation of this file.
1 #pragma once
2 #include <netinet/in.h>
3 #include <stdint.h>
4 
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8 
9 uint32_t
10 htonl(uint32_t hostlong);
11 
12 uint16_t
13 htons(uint16_t hostshort);
14 
15 uint32_t
16 ntohl(uint32_t netlong);
17 
18 uint16_t
19 ntohs(uint16_t netshort);
20 
22 inet_addr(const char *cp);
23 
24 int
25 inet_aton(const char *cp,
26  struct in_addr *inp);
27 
28 char *
29 inet_ntoa(struct in_addr in);
30 
31 char *
32 inet_ntoa_r(struct in_addr in,
33  char *buf);
34 
35 const char *
36 inet_ntop(int af,
37  const void *src,
38  char *dst,
39  socklen_t size);
40 
41 int
42 inet_pton(int af,
43  const char *src,
44  void *dst);
45 
46 #ifdef __cplusplus
47 }
48 #endif
uint32_t in_addr_t
Definition: in.h:26
Definition: in.h:29
char * inet_ntoa(struct in_addr in)
const char * inet_ntop(int af, const void *src, char *dst, socklen_t size)
int inet_aton(const char *cp, struct in_addr *inp)
in_addr_t inet_addr(const char *cp)
uint32_t ntohl(uint32_t netlong)
uint32_t htonl(uint32_t hostlong)
uint16_t htons(uint16_t hostshort)
uint16_t ntohs(uint16_t netshort)
int inet_pton(int af, const char *src, void *dst)
char * inet_ntoa_r(struct in_addr in, char *buf)
uint32_t socklen_t
Definition: socket.h:56