Chapter 1 - Introduction to Azure RTOS NetX BSD

The NetX BSD Sockets API Compliancy Wrapper supports some of the basic BSD Sockets API calls with some limitations and utilizes NetX primitives underneath. This BSD Sockets API compatibility layer should perform as fast or slightly faster than typical BSD implementations, since this Wrapper utilizes internal NetX primitives and bypasses basic NetX error checking.

BSD Sockets API Compliancy Wrapper Source

The BSD Wrapper source code is designed for simplicity and is comprised of only two files, nx_bsd.h and nx_bsd.c. The nx_bsd.h file defines all the necessary BSD Sockets API Wrapper constants and subroutine prototypes, while nx_bsd.c contains the actual BSD Sockets API compatibility source code. These BSD Wrapper source files are common to all NetX support packages.

The package consists of:

  • nx_bsd.c: Wrapper source code
  • nx_bsd.h: Main header file

Sample demo programs:

  • bsd_demo_tcp.c: Demo with a single TCP server and client
  • bsd_demo_udp.c: Demo with two UDP clients and a UDP server