bnf 1.12.11devel
Loading...
Searching...
No Matches
hostdomain.h
Go to the documentation of this file.
1/*
2 * This file is part of the Sofia-SIP package
3 *
4 * Copyright (C) 2006 Nokia Corporation.
5 *
6 * Contact: Pekka Pessi <pekka.pessi@nokia-email.address.hidden>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; either version 2.1 of
11 * the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21 * 02110-1301 USA
22 *
23 */
24
25#ifndef SOFIA_SIP_HOSTDOMAIN_H
27#define SOFIA_SIP_HOSTDOMAIN_H
28
38#ifndef SU_CONFIG_H
39#include <sofia-sip/su_config.h>
40#endif
41
42SOFIA_BEGIN_DECLS
43
44SOFIAPUBFUN int host_is_ip4_address(char const *string);
45SOFIAPUBFUN int host_is_ip6_address(char const *string);
46SOFIAPUBFUN int host_is_ip6_reference(char const *string);
47SOFIAPUBFUN int host_is_ip_address(char const *string);
48SOFIAPUBFUN int host_is_domain(char const *string);
49SOFIAPUBFUN int host_is_valid(char const *string);
50SOFIAPUBFUN int host_is_local(char const *string);
51SOFIAPUBFUN int host_has_domain_invalid(char const *string);
52SOFIAPUBFUN int host_cmp(char const *a, char const *b);
53
55SOFIAPUBFUN int host_ip6_reference(char const *string);
56
57
58SOFIA_END_DECLS
59
60#endif /* !defined(SOFIA_SIP_HOSTDOMAIN_H) */
int host_is_domain(char const *string)
Return true if string is valid a domain name.
Definition bnf.c:763
int host_is_ip6_reference(char const *string)
Return true if string is valid IP6 reference, i.e.
Definition bnf.c:733
int host_is_valid(char const *string)
Return true if string is valid a host name.
Definition bnf.c:773
int host_is_ip4_address(char const *string)
Return true if string is valid IP4 address in dot-notation.
Definition bnf.c:707
int host_is_ip6_address(char const *string)
Return true if string is valid IP6 address in hex notation.
Definition bnf.c:717
int host_is_ip_address(char const *string)
Return true if string is valid IP address.
Definition bnf.c:744
int host_is_local(char const *string)
Returns true if string is describing a local address.
Definition bnf.c:784
int host_has_domain_invalid(char const *string)
Return true if string has domain name in "invalid." domain.
Definition bnf.c:810
int host_ip6_reference(char const *string)
This is typo.
Definition bnf.c:723
int host_cmp(char const *a, char const *b)
Compare two host names or IP addresses.
Definition bnf.c:895
#define SOFIAPUBFUN

Sofia-SIP 1.12.11devel - Copyright (C) 2006 Nokia Corporation. All rights reserved. Licensed under the terms of the GNU Lesser General Public License.