This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088
Fork of libMiMic by
Revision 96:e6a0db86988e, committed 2014-10-09
- Comitter:
- nyatla
- Date:
- Thu Oct 09 12:49:07 2014 +0000
- Parent:
- 95:423d65f8b5ad
- Child:
- 97:6ca5900a2d68
- Commit message:
- fix mdns problem; mbns?TTL????????????????????
Changed in this revision
core/net/mdns/NyLPC_cMDnsServer.c | Show annotated file Show diff for this revision Revisions of this file |
--- a/core/net/mdns/NyLPC_cMDnsServer.c Mon Oct 06 02:37:30 2014 +0000 +++ b/core/net/mdns/NyLPC_cMDnsServer.c Thu Oct 09 12:49:07 2014 +0000 @@ -37,7 +37,7 @@ #define MDNS_MCAST_PORT 5353 static const struct NyLPC_TIPv4Addr MDNS_MCAST_IPADDR=NyLPC_TIPv4Addr_pack(224,0,0,251); #define TIMEOUT_IN_MS 1000 -#define NyLPC_TcMDns_TTL 120 +#define NyLPC_TcMDns_TTL (30*60) //30min struct NyLPC_TDnsHeader @@ -690,7 +690,7 @@ //アナウンス sendAnnounse(((NyLPC_TcMDnsServer_t*)i_inst)); //TTL(msec)*1000*80% - NyLPC_cStopwatch_startExpire((&((NyLPC_TcMDnsServer_t*)i_inst)->_periodic_sw),NyLPC_TcMDns_TTL*5000/4); + NyLPC_cStopwatch_startExpire((&((NyLPC_TcMDnsServer_t*)i_inst)->_periodic_sw),NyLPC_TcMDns_TTL*1000/2); } }