00001 /* 00002 00003 logging.h 00004 00005 Message logging plugin. 00006 00007 This plugin flushes messages to stderr, but you can easily change it to send 00008 data elsewhere. 00009 00010 gSOAP XML Web services tools 00011 Copyright (C) 2000-2005, Robert van Engelen, Genivia Inc., All Rights Reserved. 00012 This part of the software is released under one of the following licenses: 00013 GPL, the gSOAP public license, or Genivia's license for commercial use. 00014 -------------------------------------------------------------------------------- 00015 gSOAP public license. 00016 00017 The contents of this file are subject to the gSOAP Public License Version 1.3 00018 (the "License"); you may not use this file except in compliance with the 00019 License. You may obtain a copy of the License at 00020 http://www.cs.fsu.edu/~engelen/soaplicense.html 00021 Software distributed under the License is distributed on an "AS IS" basis, 00022 WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 00023 for the specific language governing rights and limitations under the License. 00024 00025 The Initial Developer of the Original Code is Robert A. van Engelen. 00026 Copyright (C) 2000-2005, Robert van Engelen, Genivia, Inc., All Rights Reserved. 00027 -------------------------------------------------------------------------------- 00028 GPL license. 00029 00030 This program is free software; you can redistribute it and/or modify it under 00031 the terms of the GNU General Public License as published by the Free Software 00032 Foundation; either version 2 of the License, or (at your option) any later 00033 version. 00034 00035 This program is distributed in the hope that it will be useful, but WITHOUT ANY 00036 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 00037 PARTICULAR PURPOSE. See the GNU General Public License for more details. 00038 00039 You should have received a copy of the GNU General Public License along with 00040 this program; if not, write to the Free Software Foundation, Inc., 59 Temple 00041 Place, Suite 330, Boston, MA 02111-1307 USA 00042 00043 Author contact information: 00044 [email protected] / [email protected] 00045 -------------------------------------------------------------------------------- 00046 A commercial use license is available from Genivia, Inc., [email protected] 00047 -------------------------------------------------------------------------------- 00048 */ 00049 00050 #ifndef LOGGING_H 00051 #define LOGGING_H 00052 00053 #include "stdsoap2.h" 00054 00055 #define LOGGING_ID "LOGGING-1.2" 00056 00057 extern const char logging_id[]; 00058 00059 struct logging_data 00060 { 00061 FILE *inbound; 00062 FILE *outbound; 00063 size_t stat_sent; 00064 size_t stat_recv; 00065 int (*fsend)(struct soap*, const char*, size_t); /* to save and use send callback */ 00066 size_t (*frecv)(struct soap*, char*, size_t); /* to save and use recv callback */ 00067 }; 00068 00069 int logging(struct soap *soap, struct soap_plugin *plugin, void *arg); 00070 00071 #endif