Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
inet.h
Go to the documentation of this file.
1
34#ifndef _ARPA_INET_H_
35#define _ARPA_INET_H_
36
37#include <netinet/in.h>
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
50int inet_aton (const char *name, struct in_addr *addr);
51
55uint32_t inet_addr (const char *name);
56
60char *inet_ntoa (struct in_addr addr);
61
69const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);
70
71#ifdef __cplusplus
72}
73#endif
74
75#endif /* _ARPA_INET_H_ */
uint32_t inet_addr(const char *name)
Converts a number-and-dot notation internet address to network byte order form.
int inet_aton(const char *name, struct in_addr *addr)
Converts a number-and-dot notation internet address to binary form.
const char * inet_ntop(int af, const void *src, char *dst, socklen_t size)
Convert the network address in src to a character string in src.
char * inet_ntoa(struct in_addr addr)
Converts an address to textual representation.
uint32_t socklen_t
type of sockaddr lenth
Definition socket.h:89
Structure describing an Internet address.
Definition in.h:49