Gleb Klochkov / Mbed OS Climatcontroll_Main

Dependencies:   esp8266-driver

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers fnet_mdns_config.h Source File

fnet_mdns_config.h

00001 /**************************************************************************
00002 *
00003 * Copyright 2016 by Andrey Butok. FNET Community.
00004 *
00005 ***************************************************************************
00006 *
00007 *  Licensed under the Apache License, Version 2.0 (the "License"); you may
00008 *  not use this file except in compliance with the License.
00009 *  You may obtain a copy of the License at
00010 *
00011 *  http://www.apache.org/licenses/LICENSE-2.0
00012 *
00013 *  Unless required by applicable law or agreed to in writing, software
00014 *  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
00015 *  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00016 *  See the License for the specific language governing permissions and
00017 *  limitations under the License.
00018 *
00019 **********************************************************************/
00020 /*!
00021 * @brief mDNS (Bonjour) Server/Responder configuration file.
00022 *
00023 ***************************************************************************/
00024 
00025 /**************************************************************************
00026  * !!!DO NOT MODIFY THIS FILE!!!
00027  **************************************************************************/
00028 
00029 #ifndef _FNET_MDNS_CONFIG_H_
00030 
00031 #define _FNET_MDNS_CONFIG_H_
00032 
00033 /*! @addtogroup fnet_mdns_config */
00034 /*! @{ */
00035 
00036 /**************************************************************************/ /*!
00037  * @def      FNET_CFG_MDNS
00038  * @brief    Multicast Domain Name System (mDNS/Bonjour) Server/Responder (RFC6762) support:
00039  *               - @c 1 = is enabled.
00040  *               - @b @c 0 = is disabled (Default value).
00041  ******************************************************************************/
00042 #ifndef FNET_CFG_MDNS
00043     #define FNET_CFG_MDNS                       (0)
00044 #endif
00045 
00046 /**************************************************************************/ /*!
00047  * @def     FNET_CFG_MDNS_MAX
00048  * @brief   Maximum number of the MDNS Servers that can be run simultaneously. @n
00049  *          Default value is @b @c 1.
00050  * @showinitializer
00051  ******************************************************************************/
00052 #ifndef FNET_CFG_MDNS_MAX
00053     #define FNET_CFG_MDNS_MAX                   (1u)
00054 #endif
00055 
00056 /**************************************************************************/ /*!
00057  * @def     FNET_CFG_MDNS_PORT
00058  * @brief   Default MDNS port number (in network byte order).@n
00059  *          The MDNS server/responder uses this port for sending and receiving of MDNS
00060  *          messages. @n
00061  *          RFC 6762: MUST listen for Multicast DNS replies sent to UDP destination port 5353.@n
00062  *          Default value is FNET_HTONS(5353). It is not recommended to change it.
00063  * @showinitializer
00064  ******************************************************************************/
00065 #ifndef FNET_CFG_MDNS_PORT
00066     #define FNET_CFG_MDNS_PORT                  (FNET_HTONS(5353u))
00067 #endif
00068 
00069 /**************************************************************************/ /*!
00070  * @def     FNET_CFG_MDNS_RR_TTL
00071  * @brief   Default TTL value for mDNS resource records. @n
00072  *          Default value is 120 seconds (recommended by RFC6762).
00073  * @showinitializer
00074  ******************************************************************************/
00075 #ifndef FNET_CFG_MDNS_RR_TTL
00076     #define FNET_CFG_MDNS_RR_TTL                (120)
00077 #endif
00078 
00079 /**************************************************************************/ /*!
00080  * @def     FNET_CFG_MDNS_SERVICE_MAX
00081  * @brief   Maximum number of advertised services supported by MDNS Server
00082  *          which may be registered by @ref fnet_mdns_service_register(). @n
00083  *          Default value is @b @c 2.
00084  * @showinitializer
00085  ******************************************************************************/
00086 #ifndef FNET_CFG_MDNS_SERVICE_MAX
00087     #define FNET_CFG_MDNS_SERVICE_MAX           (2u)
00088 #endif
00089 
00090 /*! @} */
00091 
00092 #endif /* _FNET_LLMNR_CONFIG_H_ */