Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Examples

resolv.h

Go to the documentation of this file.
00001 /**
00002  * \file
00003  * uIP DNS resolver code header file.
00004  * \author Adam Dunkels <adam@dunkels.com>
00005  */
00006 
00007 /*
00008  * Copyright (c) 2002-2003, Adam Dunkels.
00009  * All rights reserved. 
00010  *
00011  * Redistribution and use in source and binary forms, with or without 
00012  * modification, are permitted provided that the following conditions 
00013  * are met: 
00014  * 1. Redistributions of source code must retain the above copyright 
00015  *    notice, this list of conditions and the following disclaimer. 
00016  * 2. Redistributions in binary form must reproduce the above copyright 
00017  *    notice, this list of conditions and the following disclaimer in the 
00018  *    documentation and/or other materials provided with the distribution. 
00019  * 3. The name of the author may not be used to endorse or promote
00020  *    products derived from this software without specific prior
00021  *    written permission.  
00022  *
00023  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
00024  * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00025  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00026  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
00027  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00028  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
00029  * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
00030  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
00031  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
00032  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00033  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
00034  *
00035  * This file is part of the uIP TCP/IP stack.
00036  *
00037  * $Id: resolv.h,v 1.1 2006/06/17 22:41:18 adamdunkels Exp $
00038  *
00039  */
00040 #ifndef __RESOLV_H__
00041 #define __RESOLV_H__
00042 
00043 #include "contiki.h"
00044 
00045 /**
00046  * Event that is broadcasted when a DNS name has been resolved.
00047  */
00048 extern process_event_t resolv_event_found;
00049 
00050 /* Callbacks. */
00051 void resolv_found(char *name, u16_t *ipaddr);
00052 
00053 /* Functions. */
00054 void resolv_conf(u16_t *dnsserver);
00055 u16_t *resolv_getserver(void);
00056 void resolv_init(char *arg);
00057 u16_t *resolv_lookup(char *name);
00058 void resolv_query(char *name);
00059 
00060 PROCESS_NAME(resolv_process);
00061 
00062 #endif /* __RESOLV_H__ */

Generated on Thu Jun 22 17:45:43 2006 for Contiki 2.x by  doxygen 1.4.4