?lang_form? ?lang_select? ?lang_submit? ?lang_endform?
{HEADER END}
{BLAME START}

library

?curdirlinks? -

Blame information for rev 32

Line No. Rev Author Line
1 32 kaklik /*********************************************************************
2 *
3 * Zero Configuration (Zeroconf) Multicast DNS and
4 * Service Discovery Module for Microchip TCP/IP Stack
5 *
6 *********************************************************************
7 * FileName: ZeroconfMulticastDNS.h
8 * Dependencies: IP
9 * Processor: PIC24F, PIC24H, dsPIC30F, dsPIC33F, PIC32
10 * Compiler: Microchip C32 v1.05 or higher
11 * Microchip C30 v3.12 or higher
12 * Company: Microchip Technology, Inc.
13 *
14 * Software License Agreement
15 *
16 * Copyright (C) 2009-2010 Microchip Technology Inc. All rights
17 * reserved.
18 *
19 * Microchip licenses to you the right to use, modify, copy, and
20 * distribute:
21 * (i) the Software when embedded on a Microchip microcontroller or
22 * digital signal controller product ("Device") which is
23 * integrated into Licensee's product; or
24 * (ii) ONLY the Software driver source files ENC28J60.c, ENC28J60.h,
25 * ENCX24J600.c and ENCX24J600.h ported to a non-Microchip device
26 * used in conjunction with a Microchip ethernet controller for
27 * the sole purpose of interfacing with the ethernet controller.
28 *
29 * You should refer to the license agreement accompanying this
30 * Software for additional information regarding your rights and
31 * obligations.
32 *
33 * THE SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT
34 * WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT
35 * LIMITATION, ANY WARRANTY OF MERCHANTABILITY, FITNESS FOR A
36 * PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL
37 * MICROCHIP BE LIABLE FOR ANY INCIDENTAL, SPECIAL, INDIRECT OR
38 * CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF
39 * PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY OR SERVICES, ANY CLAIMS
40 * BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY DEFENSE
41 * THEREOF), ANY CLAIMS FOR INDEMNITY OR CONTRIBUTION, OR OTHER
42 * SIMILAR COSTS, WHETHER ASSERTED ON THE BASIS OF CONTRACT, TORT
43 * (INCLUDING NEGLIGENCE), BREACH OF WARRANTY, OR OTHERWISE.
44 *
45 *
46 * Author Date Comment
47 *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
48 * Pradeep Reddy 31 Mar 2009 Initial creation
49 * Pradeep Reddy 23 Apr 2009 DNS-SD implementation
50 * Brad Rex 05 Apr 2010 Updated for MRF24WB0M
51 ********************************************************************/
52 #ifndef __ZEROCONF_MULTICAST_DNS_H
53 #define __ZEROCONF_MULTICAST_DNS_H
54  
55 // --------------------------------------------------------------
56 // Configurations
57 //
58  
59 #define HTTPUpdateRecord_INTERVAL (300u) // Seconds between HTTPUpdateRecord() calls.
60  
61 #define MDNS_DEFAULT_SERVICE_NAME "Microchip Demo"
62  
63 // define the debugging levels
64 #include "TCPIP Stack/ZeroconfHelper.h"
65  
66 // For verbose debugging
67 #ifdef DEBUG_MDNS
68 #define DEBUG_MDNS_PRINT(x) debug_mdns_print(x)
69 #define DEBUG_MDNS_MESG sprintf
70 #else
71 #define DEBUG_MDNS_PRINT(x)
72 #define DEBUG_MDNS_MESG(x,y...)
73 #endif
74  
75 // For less verbose debugging
76 #ifdef INFO_MDNS
77 #define INFO_MDNS_PRINT(x) info_mdns_print(x)
78 #define INFO_MDNS_MESG sprintf
79 #else
80 #define INFO_MDNS_PRINT(x)
81 #define INFO_MDNS_MESG(x,y...)
82 #endif
83  
84 // For warnings, errors, and other exceptions
85 #ifdef WARN_MDNS
86 #define WARN_MDNS_PRINT(x) putsUART(x)
87 #define WARN_MDNS_MESG sprintf
88 #else
89 #define WARN_MDNS_PRINT(x)
90 #define WARN_MDNS_MESG(x,y...)
91 #endif
92  
93 // Always print
94 #define MDNS_PRINT(x) putsUART(x)
95 #define MDNS_MESG sprintf
96  
97 #define DEBUG0_MDNS_PRINT INFO_MDNS_PRINT
98 #define DEBUG0_MDNS_MESG INFO_MDNS_MESG
99  
100 // --------------------------------------------------------------
101 // Function prototypes and data structures
102 //
103  
104 void mDNSInitialize(const char *szHostName);
105 void mDNSProcess(void);
106 void mDNSFillHostRecord(void);
107  
108 //void DisplayHostName(BYTE *HostName);
109  
110 typedef enum _MDNSD_ERR_CODE {
111 MDNSD_SUCCESS = 0,
112 MDNSD_ERR_BUSY = 1, /* Already Being used for another Service */
113 MDNSD_ERR_CONFLICT = 2, /* Name Conflict */
114 MDNSD_ERR_INVAL = 3, /* Invalid Parameter */
115 }MDNSD_ERR_CODE;
116  
117 /* DNS-Service Discovery APIs */
118 MDNSD_ERR_CODE mDNSServiceRegister(
119 const char *name,
120 const char *regtype,
121 WORD port,
122 const BYTE *txtRecord,
123 BYTE auto_rename,
124 void (*call_back)(char *name, MDNSD_ERR_CODE err, void *context),
125 void *context );
126 MDNSD_ERR_CODE mDNSServiceDeRegister();
127  
128 MDNSD_ERR_CODE mDNSServiceUpdate(
129 WORD port,
130 const BYTE *txt_record);
131  
132 MDNSD_ERR_CODE mDNSHostRegister(const char *host_name);
133  
134 MDNSD_ERR_CODE mDNSMulticastFilterRegister(void);
135  
136 //#if defined(DEBUG_MDNS) || defined(INFO_MDNS)
137 void mDNSDumpInfo(void);
138 //#endif
139  
140 #endif
{BLAME END}
{FOOTER START}

Powered by WebSVN v2.8.3