17 lines
645 B
C
17 lines
645 B
C
// Internet address conversion declarations for nt-lite POSIX.
|
|
|
|
#pragma once
|
|
|
|
#include <netinet/in.h>
|
|
#include <ntlite_posix_api.h>
|
|
|
|
NTL_POSIX_API uint16_t htons(uint16_t value);
|
|
NTL_POSIX_API uint16_t ntohs(uint16_t value);
|
|
NTL_POSIX_API uint32_t htonl(uint32_t value);
|
|
NTL_POSIX_API uint32_t ntohl(uint32_t value);
|
|
NTL_POSIX_API in_addr_t inet_addr(const char* text);
|
|
NTL_POSIX_API char* inet_ntoa(struct in_addr address);
|
|
NTL_POSIX_API int inet_pton(int family, const char* source, void* destination);
|
|
NTL_POSIX_API const char* inet_ntop(int family, const void* source,
|
|
char* destination, socklen_t size);
|