My Project
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
in.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <stdint.h>
4 #include <sys/socket.h>
5 
6 #define INADDR_ANY 0x00000000
7 #define INADDR_BROADCAST 0xFFFFFFFF
8 #define INADDR_NONE 0xFFFFFFFF
9 
10 #define INET_ADDRSTRLEN 16
11 
12 //#define IPPROTO_IP ???
13 //#define IPPROTO_TCP ???
14 //#define IPPROTO_UDP ???
15 
16 typedef uint16_t in_port_t;
17 typedef uint32_t in_addr_t;
18 
19 struct in_addr {
21 };
22 
23 struct sockaddr_in {
26  struct in_addr sin_addr;
27  unsigned char sin_zero[8];
28 };
Definition: in.h:23
uint16_t in_port_t
Definition: in.h:16
uint16_t sa_family_t
Definition: socket.h:51
struct in_addr sin_addr
Definition: in.h:26
Definition: in.h:19
in_addr_t s_addr
Definition: in.h:20
uint32_t in_addr_t
Definition: in.h:17
sa_family_t sin_family
Definition: in.h:24
unsigned char sin_zero[8]
Definition: in.h:27
in_port_t sin_port
Definition: in.h:25