~ifolder-dev/simias/trunk-packaging

« back to all changes in this revision

Viewing changes to tools/gsoap/gsoap-linux-2.7/plugin/.svn/text-base/httpget.h.svn-base

  • Committer: Jorge O. Castro
  • Date: 2007-12-03 06:56:46 UTC
  • Revision ID: jorge@ubuntu.com-20071203065646-mupcnjcwgm5mnhyt
* Remove a bunch of .svn directories we no longer need.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 
3
 
httpget.h
4
 
 
5
 
gSOAP HTTP GET plugin.
6
 
 
7
 
gSOAP XML Web services tools
8
 
Copyright (C) 2004-2005, Robert van Engelen, Genivia, Inc. All Rights Reserved.
9
 
 
10
 
--------------------------------------------------------------------------------
11
 
gSOAP public license.
12
 
 
13
 
The contents of this file are subject to the gSOAP Public License Version 1.3
14
 
(the "License"); you may not use this file except in compliance with the
15
 
License. You may obtain a copy of the License at
16
 
http://www.cs.fsu.edu/~engelen/soaplicense.html
17
 
Software distributed under the License is distributed on an "AS IS" basis,
18
 
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
19
 
for the specific language governing rights and limitations under the License.
20
 
 
21
 
The Initial Developer of the Original Code is Robert A. van Engelen.
22
 
Copyright (C) 2000-2004 Robert A. van Engelen, Genivia inc. All Rights Reserved.
23
 
--------------------------------------------------------------------------------
24
 
GPL license.
25
 
 
26
 
This program is free software; you can redistribute it and/or modify it under
27
 
the terms of the GNU General Public License as published by the Free Software
28
 
Foundation; either version 2 of the License, or (at your option) any later
29
 
version.
30
 
 
31
 
This program is distributed in the hope that it will be useful, but WITHOUT ANY
32
 
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
33
 
PARTICULAR PURPOSE. See the GNU General Public License for more details.
34
 
 
35
 
You should have received a copy of the GNU General Public License along with
36
 
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
37
 
Place, Suite 330, Boston, MA 02111-1307 USA
38
 
 
39
 
Author contact information:
40
 
engelen@genivia.com / engelen@acm.org
41
 
--------------------------------------------------------------------------------
42
 
*/
43
 
 
44
 
#ifndef HTTPGET_H
45
 
#define HTTPGET_H
46
 
 
47
 
#include "stdsoap2.h"
48
 
 
49
 
#define HTTP_GET_ID "HTTP-GET-1.1" /* plugin identification */
50
 
 
51
 
extern const char http_get_id[];
52
 
 
53
 
/* This is the local plugin data shared among all copies of the soap struct: */
54
 
struct http_get_data
55
 
{ int (*fparse)(struct soap*); /* to save and call the internal HTTP header parser */
56
 
  int (*fget)(struct soap*); /* user-defined server-side HTTP GET handler */
57
 
  size_t stat_get;  /* HTTP GET usage statistics */
58
 
  size_t stat_post; /* HTTP POST usage statistics */
59
 
  size_t stat_fail; /* HTTP failure statistics */
60
 
  size_t min[60]; /* Hits by the minute */
61
 
  size_t hour[24]; /* Hits by the hour */
62
 
  size_t day[365]; /* Hits by day */
63
 
};
64
 
 
65
 
int http_get(struct soap*, struct soap_plugin*, void*);
66
 
int soap_get_connect(struct soap*, const char*, const char*);
67
 
 
68
 
char *query(struct soap*);
69
 
char *query_key(struct soap*, char**);
70
 
char *query_val(struct soap*, char**);
71
 
 
72
 
int soap_encode_string(const char*, char*, size_t);
73
 
const char* soap_decode_string(char*, size_t, const char*);
74
 
 
75
 
#endif