mbed OS5
Fork of UIPEthernet by
utility/util.h@4:d774541a34da, 2015-03-08 (annotated)
- Committer:
- hudakz
- Date:
- Sun Mar 08 20:26:56 2015 +0000
- Revision:
- 4:d774541a34da
- Parent:
- 3:5b17e4656dd0
- Child:
- 8:4acb22344932
Version 1.09 (fixed leaking client-data caused by race-condition on remote close)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hudakz | 3:5b17e4656dd0 | 1 | #ifndef UTIL_H |
hudakz | 4:d774541a34da | 2 | #define UTIL_H |
hudakz | 3:5b17e4656dd0 | 3 | |
hudakz | 4:d774541a34da | 4 | #define htons(x) (((x) << 8) | (((x) >> 8) & 0xFF)) |
hudakz | 4:d774541a34da | 5 | #define ntohs(x) htons(x) |
hudakz | 4:d774541a34da | 6 | #define htonl(x) \ |
hudakz | 4:d774541a34da | 7 | (((x) << 24 & 0xFF000000UL) | ((x) << 8 & 0x00FF0000UL) | ((x) >> 8 & 0x0000FF00UL) | ((x) >> 24 & 0x000000FFUL)) |
hudakz | 4:d774541a34da | 8 | #define ntohl(x) htonl(x) |
hudakz | 3:5b17e4656dd0 | 9 | #endif |