Network Services API  2.70.01.02
Data Structures | Macros | Typedefs | Functions
slnetutils.h File Reference
#include <stddef.h>
#include "slnetsock.h"
Include dependency graph for slnetutils.h:

Go to the source code of this file.

Data Structures

struct  SlNetUtil_addrInfo_t
 

Macros

#define SLNETUTIL_AI_PASSIVE   0x00000001
 
#define SLNETUTIL_AI_NUMERICHOST   0x00000004
 
#define SLNETUTIL_IPV4_VAL(add_3, add_2, add_1, add_0)   ((((uint32_t)add_3 << 24) & 0xFF000000) | (((uint32_t)add_2 << 16) & 0xFF0000) | (((uint32_t)add_1 << 8) & 0xFF00) | ((uint32_t)add_0 & 0xFF) )
 

Typedefs

typedef struct SlNetUtil_addrInfo_t SlNetUtil_addrInfo_t
 

Functions

int32_t SlNetUtil_init (int32_t flags)
 Initialize the SlNetUtil module. More...
 
const char * SlNetUtil_gaiStrErr (int32_t errorCode)
 Return text descriptions of getAddrInfo error codes. More...
 
int32_t SlNetUtil_getHostByName (uint32_t ifBitmap, char *name, const uint16_t nameLen, uint32_t *ipAddr, uint16_t *ipAddrLen, const uint8_t family)
 Get host IP by name
Obtain the IP Address of machine on network, by machine name. More...
 
int32_t SlNetUtil_getAddrInfo (uint16_t ifID, const char *node, const char *service, const struct SlNetUtil_addrInfo_t *hints, struct SlNetUtil_addrInfo_t **res)
 Network address and service translation. More...
 
void SlNetUtil_freeAddrInfo (struct SlNetUtil_addrInfo_t *res)
 Free the results returned from SlNetUtil_getAddrInfo. More...
 
uint32_t SlNetUtil_htonl (uint32_t val)
 Reorder the bytes of a 32-bit unsigned value. More...
 
uint32_t SlNetUtil_ntohl (uint32_t val)
 Reorder the bytes of a 32-bit unsigned value. More...
 
uint16_t SlNetUtil_htons (uint16_t val)
 Reorder the bytes of a 16-bit unsigned value. More...
 
uint16_t SlNetUtil_ntohs (uint16_t val)
 Reorder the bytes of a 16-bit unsigned value. More...
 
int SlNetUtil_inetAton (const char *str, struct SlNetSock_InAddr_t *addr)
 Convert an IPv4 address in string format to binary format. More...
 
const char * SlNetUtil_inetNtop (int16_t addrFamily, const void *binaryAddr, char *strAddr, SlNetSocklen_t strAddrLen)
 Converts IP address in binary representation to string representation. More...
 
int32_t SlNetUtil_inetPton (int16_t addrFamily, const char *strAddr, void *binaryAddr)
 Converts IP address in string representation to binary representation. More...
 
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale