ESP8266
Main Page
Related Pages
Modules
Classes
esp8266
libraries
Ethernet
src
utility
util.h
1
#ifndef UTIL_H
2
#define UTIL_H
3
4
#define htons(x) ( ((x)<< 8 & 0xFF00) | \
5
((x)>> 8 & 0x00FF) )
6
#define ntohs(x) htons(x)
7
8
#define htonl(x) ( ((x)<<24 & 0xFF000000UL) | \
9
((x)<< 8 & 0x00FF0000UL) | \
10
((x)>> 8 & 0x0000FF00UL) | \
11
((x)>>24 & 0x000000FFUL) )
12
#define ntohl(x) htonl(x)
13
14
#endif
Generated by
1.8.10