unofficial-rtos-docs

Chapter 2 - Installation and use of mDNS

This chapter contains a description of various issues related to installation, set up, and usage of the NetX Duo mDNS module.

Product Distribution

NetX Duo mDNS is available at https://github.com/eclipse-threadx/netxduo. The package includes two source files and a PDF file that contains this document, as follows:

NetX Duo mDNS Installation

In order to use the NetX Duo mDNS APIs, the entire distribution mentioned previously should be copied to the same directory where NetX Duo is installed. For example, if NetX Duo is installed in the directory “c:\netxduo” then the nxd_mdns.h and nxd_mdns.c should be copied into this directory.

Using NetX Duo mDNS

Using the NetX Duo mDNS module is easy. Basically, the application code must include nxd_mdns.h after it includes tx_api.h and nx_api.h, in order to use ThreadX, and NetX Duo, respectively. The build project must include the mDNS source code and the application file, and of course the ThreadX and NetX library files. This is all that is required to use NetX Duo mDNS.

Configuration Options

There are several configuration options for building NetX Duo mDNS module. The default values are listed, but each define can be set by the application prior to inclusion of the specified NetX Duo mDNS header file. The following list describes each in detail: