XenevaOS
Loading...
Searching...
No Matches
inet.h
Go to the documentation of this file.
1
30#ifndef __INET_H__
31#define __INET_H__
32
33#include <stdint.h>
34#include <sys/socket.h>
35#include <_xeneva.h>
36
37#ifdef __cplusplus
39#endif
40
41 XE_LIB uint32_t htonl(uint32_t hostlong);
42 XE_LIB uint16_t htons(uint16_t hostshort);
44 XE_LIB uint16_t ntohs(uint16_t netshort);
45 XE_LIB in_addr_t inet_addr(const char* in);
46 XE_LIB char* inet_ntoa(struct in_addr in);
47 XE_LIB int inet_pton(int af, const char* src, void* dst);
48 XE_LIB const char* inet_ntop(int af, const void* src, char* dst, size_t size);
49
50#ifdef __cplusplus
51}
52#endif
53
54#endif
uint32_t in_addr_t
Definition socket.h:125
#define XE_LIB
Definition _xeneva.h:55
#define XE_EXTERN
Definition _xeneva.h:50
unsigned int uint32_t
Definition acefiex.h:163
unsigned short int uint16_t
Definition acefiex.h:162
#define ntohl(l)
Definition aunet.h:74
#define htonl(l)
Definition aunet.h:72
#define htons(s)
Definition aunet.h:73
#define ntohs(s)
Definition aunet.h:75
XE_LIB char * inet_ntoa(struct in_addr in)
Definition inet.cpp:80
XE_LIB int inet_pton(int af, const char *src, void *dst)
Definition inet.cpp:221
XE_LIB const char * inet_ntop(int af, const void *src, char *dst, size_t size)
Definition inet.cpp:301
XE_LIB in_addr_t inet_addr(const char *in)
Definition inet.cpp:53
Definition socket.h:128