#include <stdint.h>
Go to the source code of this file.
|
uint16_t | PLAT_htons (uint16_t s) |
| Converts the unsigned short integer hostshort from host byte order to network byte order. More...
|
|
uint32_t | PLAT_htonl (uint32_t l) |
| Converts the unsigned integer hostlong from host byte order to network byte order. More...
|
|
uint16_t | PLAT_ntohs (uint16_t s) |
| Converts the unsigned short integer netshort from network byte order to host byte order. More...
|
|
uint32_t | PLAT_ntohl (uint32_t l) |
| Converts the unsigned integer netlong from network byte order to host byte order. More...
|
|
#define PLAT_snprintf |
( |
|
... | ) |
snprintf( __VA_ARGS__ ) |
#define PLAT_strncpy |
( |
|
dest, |
|
|
|
src, |
|
|
|
max |
|
) |
| strncpy( dest, src, max+1 ) |
uint32_t PLAT_htonl |
( |
uint32_t |
l | ) |
|
Converts the unsigned integer hostlong from host byte order to network byte order.
- Parameters
-
- Returns
- value in network byte order
uint16_t PLAT_htons |
( |
uint16_t |
s | ) |
|
Converts the unsigned short integer hostshort from host byte order to network byte order.
- Parameters
-
- Returns
- short value in network order
uint32_t PLAT_ntohl |
( |
uint32_t |
l | ) |
|
Converts the unsigned integer netlong from network byte order to host byte order.
- Parameters
-
l | Long value in network order |
- Returns
- Long value on host byte order
uint16_t PLAT_ntohs |
( |
uint16_t |
s | ) |
|
Converts the unsigned short integer netshort from network byte order to host byte order.
- Parameters
-
s | Network order short integer |
- Returns
- host order value