Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
inet.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019 Linaro Limited
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6#ifndef ZEPHYR_INCLUDE_POSIX_ARPA_INET_H_
7#define ZEPHYR_INCLUDE_POSIX_ARPA_INET_H_
8
9#include <stddef.h>
10
13
14#include <zephyr/net/socket.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
21
22in_addr_t inet_addr(const char *cp);
23char *inet_ntoa(struct in_addr in);
24char *inet_ntop(sa_family_t family, const void *src, char *dst, size_t size);
25int inet_pton(sa_family_t family, const char *src, void *dst);
26
27#ifdef __cplusplus
28}
29#endif
30
31#endif /* ZEPHYR_INCLUDE_POSIX_ARPA_INET_H_ */
unsigned short int sa_family_t
Socket address family type.
Definition net_ip.h:168
in_addr_t inet_addr(const char *cp)
uint32_t in_addr_t
Definition inet.h:20
int inet_pton(sa_family_t family, const char *src, void *dst)
char * inet_ntoa(struct in_addr in)
char * inet_ntop(sa_family_t family, const void *src, char *dst, size_t size)
BSD Sockets compatible API definitions.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
IPv4 address struct.
Definition net_ip.h:155