ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/vendor/pxys2-2.0.0/pxyservd/src/opas_support.h
Revision: 3252
Committed: Wed Apr 2 20:41:43 2014 UTC (11 years, 4 months ago) by michael
Content type: text/x-chdr
File size: 1571 byte(s)
Log Message:
- Imported pxys2-2.0.0

File Contents

# Content
1 /* Copyright (C) 2003 Stephane Thiell
2 *
3 * This file is part of pxyservd (from pxys)
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 *
19 * $Id: opas_support.h,v 1.1.1.1 2003/12/30 17:09:32 mbuna Exp $
20 */
21 #ifndef INCLUDED_OPAS_SUPPORT_H
22 #define INCLUDED_OPAS_SUPPORT_H
23
24 #include <sys/types.h>
25 #include <sys/socket.h>
26 #include <netinet/in.h>
27 #include <peak/stdint.h>
28
29 /* OPAS (Open Proxy Ascertainment Service) support module.
30 */
31
32 extern int opas_support_init(void);
33 extern void opas_support_finalize(void);
34 extern int opas_support_is_ready();
35 extern int opas_support_query(const struct in_addr *addr, uint32_t user_data);
36 extern int opas_support_query6(const struct in6_addr *addr,
37 uint32_t user_data);
38
39 extern void opas_support_send_msg_user(void *data, size_t length,
40 uint32_t user_data);
41
42 #endif /* INCLUDED_OPAS_SUPPORT_H */