BRL-CAD
Loading...
Searching...
No Matches
System Network Header Wrangler

BRL-CAD system compatibility wrapper header that provides declarations for native and standard system NETWORKING routines. More...

Collaboration diagram for System Network Header Wrangler:

Files

file  bnetwork.h
 

Macros

#define INADDR_ANY   ((uint32_t)0x00000000)
 
#define INADDR_LOOPBACK   ((uint32_t)0x7f000001)
 
#define INADDR_BROADCAST   ((uint32_t)0xffffffff)
 

Functions

uint32_t htonl (uint32_t)
 
uint32_t ntohl (uint32_t)
 

Detailed Description

BRL-CAD system compatibility wrapper header that provides declarations for native and standard system NETWORKING routines.

This header is commonly used in lieu of including the following: winsock2.h (not select, fd_set), netinet/in.h, netinet/tcp.h, arpa/inet.h (htonl, ntohl, etc)

The logic in this header should not rely on common.h's HAVE_* defines and should not be including the common.h header. This is intended to be a stand-alone portability header intended to be independent of build system, reusable by external projects.

Macro Definition Documentation

◆ INADDR_ANY

#define INADDR_ANY   ((uint32_t)0x00000000)

Definition at line 73 of file bnetwork.h.

◆ INADDR_LOOPBACK

#define INADDR_LOOPBACK   ((uint32_t)0x7f000001)

Definition at line 76 of file bnetwork.h.

◆ INADDR_BROADCAST

#define INADDR_BROADCAST   ((uint32_t)0xffffffff)

Definition at line 79 of file bnetwork.h.

Function Documentation

◆ htonl()

uint32_t htonl ( uint32_t  )
extern

◆ ntohl()

uint32_t ntohl ( uint32_t  )
extern