gPTP Documentation
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
windows/daemon_cl/platform.hpp File Reference
#include <stdio.h>
Include dependency graph for windows/daemon_cl/platform.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PLAT_snprintf(buffer, count,...)   _snprintf_s(buffer,count,count,__VA_ARGS__);
 

Functions

errno_t PLAT_strncpy (char *dest, const char *src, rsize_t max)
 
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...
 

Macro Definition Documentation

#define PLAT_snprintf (   buffer,
  count,
  ... 
)    _snprintf_s(buffer,count,count,__VA_ARGS__);

provides snprintf

Function Documentation

uint32_t PLAT_htonl ( uint32_t  l)

Converts the unsigned integer hostlong from host byte order to network byte order.

Parameters
lHost long byte order
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
sshort host byte order
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
lLong 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
sNetwork order short integer
Returns
host order value
errno_t PLAT_strncpy ( char *  dest,
const char *  src,
rsize_t  max 
)

Provides strncpy