Coda Distributed File System
coda_getaddrinfo.h
Go to the documentation of this file.
1/* BLURB lgpl
2
3 Coda File System
4 Release 6
5
6 Copyright (c) 2003 Carnegie Mellon University
7 Additional copyrights listed below
8
9This code is distributed "AS IS" without warranty of any kind under
10the terms of the GNU Library General Public Licence Version 2, as
11shown in the file LICENSE. The technical and financial contributors to
12Coda are listed in the file CREDITS.
13
14 Additional copyrights
15 none currently
16#*/
17
18#ifndef _CODA_GETADDRINFO_H_
19#define _CODA_GETADDRINFO_H_
20
21/*
22 * This code handles DNS SRV record (RFC2782), and IN A lookups for a
23 * specified service within a domain. In a perfect world 'getaddrinfo'
24 * would do all of this for us ;)
25 */
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31#include <sys/types.h>
32#include <sys/socket.h>
33#include <rpc2/rpc2_addrinfo.h>
34
35#define CODA_AI_RES_SRV 0x8000
36
37int coda_getaddrinfo(const char *node, const char *service,
38 const struct RPC2_addrinfo *hints,
39 struct RPC2_addrinfo **res);
40void coda_reorder_addrinfo(struct RPC2_addrinfo **res);
41
42#ifdef __cplusplus
43}
44#endif
45
46#endif /* _CODA_GETADDRINFO_H_ */
int coda_getaddrinfo(const char *node, const char *service, const struct RPC2_addrinfo *hints, struct RPC2_addrinfo **res)
Definition: coda_getaddrinfo.c:314
void coda_reorder_addrinfo(struct RPC2_addrinfo **res)
Definition: coda_getaddrinfo.c:246
Definition: rpc2_addrinfo.h:28