blob: 44999b03e4b1105d1dd0fef03665c93f6e59cd6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#pragma once
#define __BITS_IN_ADDR_H_
#include "bits/in_addr.h"
#define INET_ADDRSTRLEN 16
#define INET6_ADDRSTRLEN 46
typedef __UINT16_TYPE__ in_port_t;
typedef __UINT32_TYPE__ uint32_t;
typedef __UINT16_TYPE__ uint16_t;
typedef unsigned socklen_t;
uint32_t htonl(uint32_t);
uint16_t htons(uint16_t);
uint32_t ntohl(uint32_t);
uint16_t ntohs(uint16_t);
in_addr_t inet_addr(const char *);
char *inet_ntoa(struct in_addr);
const char *inet_ntop(int, const void *restrict, char *restrict, socklen_t);
int inet_pton(int, const char *restrict, void *restrict);
|