ekg2
Strona główna
Dodatkowe strony
Moduły
Struktury Danych
Pliki
Lista plików
Globalne
All
Struktury Danych
Pliki
Funkcje
Zmienne
Definicje typów
Wyliczenia
Wartości wyliczeń
Definicje
Grupay
Strony
ekg
srv.h
Idź do dokumentacji tego pliku.
1
/*
2
* (C) Copyright 2004-2005 Michal 'GiM' Spadlinski <gim at skrzynka dot pl>
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License Version 2 as
6
* published by the Free Software Foundation.
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
*/
17
18
#ifndef __EKG_SRV_H
19
#define __EKG_SRV_H
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
25
typedef
struct
_gim_host
gim_host
;
26
27
char
*
ekg_inet_ntostr
(
int
family,
void
*buf);
28
29
int
srv_resolver
(
gim_host
**hostlist,
const
char
*hostname,
const
int
proto_port,
const
int
port
,
const
int
proto);
30
LIST_ADD_COMPARE
(
gim_host_cmp
,
gim_host
* );
31
32
int
resolve_missing_entries
(
gim_host
**hostlist);
33
int
basic_resolver
(
gim_host
**hostlist,
const
char
*hostname,
int
port
);
34
35
void
write_out_and_destroy_list
(
int
fd,
gim_host
*hostlist);
36
37
#define DNS_SRV_MAX_PRIO 0xffff
38
extern
const
int
DNS_NS_MAXDNAME
;
39
40
#ifdef __cplusplus
41
}
42
#endif
43
44
#endif
/* __EKG_SRV_H */
45
46
/*
47
* Local Variables:
48
* mode: c
49
* c-file-style: "k&r"
50
* c-basic-offset: 8
51
* indent-tabs-mode: t
52
* End:
53
*/
Wygenerowano N, 10 lut 2013 05:08:19 dla ekg2 programem
1.8.3.1