bglibs: resolve.h Source File

- Main Page
- Modules
- Data Structures
- Files
- Directories
- Related Pages
- Examples

# resolve.h

    00001 /* $Id: resolve.h 707 2006-07-27 18:56:15Z bruce $ */
    00002 #ifndef NET__RESOLVE__H__
    00003 #define NET__RESOLVE__H__
    00004
    00005 #include "ipv4.h"
    00006
    00011 #define RESOLVE_OK 0
    00012
    00013 #define RESOLVE_NOTFOUND 1
    00014
    00015 #define RESOLVE_NOADDR 2
    00016
    00017 #define RESOLVE_NSERROR 3
    00018
    00019 #define RESOLVE_TEMPFAIL 4
    00020
    00021 extern const char* resolve_ipv4addr(const ipv4addr* addr);
    00022 extern int resolve_ipv4name_n(const char* name, ipv4addr* addr, int maxaddrs);
    00024 #define resolve_ipv4name(N,A) resolve_ipv4name_n((N),(A),1)
    00025 extern int resolve_error(void);
    00026
    00029 #endif