Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers fnet_dns_config.h Source File

fnet_dns_config.h

00001 /**************************************************************************
00002 *
00003 * Copyright 2011-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 DNS Resolver configuration file.
00022 *
00023 ***************************************************************************/
00024 
00025 /**************************************************************************
00026  * !!!DO NOT MODIFY THIS FILE!!!
00027  **************************************************************************/
00028 
00029 #ifndef _FNET_DNS_CONFIG_H_
00030 
00031 #define _FNET_DNS_CONFIG_H_
00032 
00033 /*! @addtogroup fnet_dns_config */
00034 /*! @{ */
00035 
00036 /**************************************************************************/ /*!
00037  * @def      FNET_CFG_DNS_RESOLVER
00038  * @brief    DNS client/resolver support:
00039  *               - @c 1 = is enabled.
00040  *               - @b @c 0 = is disabled (Default value).
00041  ******************************************************************************/
00042 #ifndef FNET_CFG_DNS_RESOLVER
00043     #define FNET_CFG_DNS_RESOLVER                   (0)
00044 #endif
00045 
00046 /**************************************************************************/ /*!
00047  * @def     FNET_CFG_DNS_PORT
00048  * @brief   Default DNS port number (in network byte order).@n
00049  *          The DNS client uses this port for sending and receiving of DNS
00050  *          messages. @n
00051  *          It can be changed during the DNS Resolver initialization by the
00052  *          @ref fnet_dns_init() function.@n
00053  *          Default value is FNET_HTONS(53).
00054  * @showinitializer
00055  ******************************************************************************/
00056 #ifndef FNET_CFG_DNS_PORT
00057     #define FNET_CFG_DNS_PORT                       (FNET_HTONS(53U))
00058 #endif
00059 
00060 /**************************************************************************/ /*!
00061  * @def     FNET_CFG_DNS_RETRANSMISSION_MAX
00062  * @brief   The maximum number of times the DNS client/resolver will retransmit
00063  *          the request message to a DNS server.@n
00064  *          Default value is @b @c 5.
00065  * @showinitializer
00066  ******************************************************************************/
00067 #ifndef FNET_CFG_DNS_RETRANSMISSION_MAX
00068     #define FNET_CFG_DNS_RETRANSMISSION_MAX         (5U)
00069 #endif
00070 
00071 /**************************************************************************/ /*!
00072  * @def     FNET_CFG_DNS_RETRANSMISSION_TIMEOUT
00073  * @brief   Timeout for the response from the remote DNS server (in seconds).@n
00074  *          @n
00075  *          The recommended value is @c 1 second.@n
00076  *          If the DNS client does not receive any response from a DNS server,
00077  *          it sends new request message.@n
00078  *          Default value is @b @c 1.
00079  * @showinitializer
00080  ******************************************************************************/
00081 #ifndef FNET_CFG_DNS_RETRANSMISSION_TIMEOUT
00082     #define FNET_CFG_DNS_RETRANSMISSION_TIMEOUT     (1U)  /* seconds */
00083 #endif
00084 
00085 /*! @} */
00086 
00087 #endif /* _FNET_DNS_CONFIG_H_ */