⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stdsoap2.h

📁 apache模组的源代码
💻 H
📖 第 1 页 / 共 3 页
字号:
/*	stdsoap2.h 2.3 rev 4The contents of this file are subject to the gSOAP Public License Version 1.3(the "License"); you may not use this file except in compliance with theLicense. You may obtain a copy of the License athttp://www.cs.fsu.edu/~engelen/soaplicense.htmlSoftware distributed under the License is distributed on an "AS IS" basis,WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Licensefor the specific language governing rights and limitations under the License.The Initial Developer of the Original Code is Robert A. van Engelen.Copyright (C) 2000-2003 Robert A. van Engelen, Genivia inc. All Rights Reserved.*/#ifdef WITH_SOAPDEFS_H# include "soapdefs.h"		/* include user-defined stuff */#endif#ifndef _THREAD_SAFE# define _THREAD_SAFE#endif#ifndef OPENSERVER# ifndef _REENTRANT#  define _REENTRANT# endif#endif#ifndef SOAP_BEGIN_NAMESPACE# define SOAP_BEGIN_NAMESPACE(name)#endif#ifndef SOAP_END_NAMESPACE# define SOAP_END_NAMESPACE(name)#endif#ifndef SOAP_FMAC1	/* stdsoap2.h declaration macro */# define SOAP_FMAC1#endif#ifndef SOAP_FMAC2	/* stdsoap2.h declaration macro */# define SOAP_FMAC2#endif#ifndef SOAP_FMAC3	/* (de)serializer declaration macro */# define SOAP_FMAC3#endif#ifndef SOAP_FMAC4	/* (de)serializer declaration macro */# define SOAP_FMAC4#endif#ifndef SOAP_FMAC5	/* stub/skeleton declaration macro */# define SOAP_FMAC5#endif#ifndef SOAP_FMAC6	/* stub/skeleton declaration macro */# define SOAP_FMAC6#endif#ifndef SOAP_CMAC	/* class declaration macro */# define SOAP_CMAC#endif#ifndef SOAP_NMAC	/* namespace table declaration macro */# define SOAP_NMAC#endif#ifndef SOAP_SOURCE_STAMP# define SOAP_SOURCE_STAMP(str)#endif#ifdef WITH_LEANER# ifndef WITH_LEAN#  define WITH_LEAN# endif#endif#ifdef WITH_LEAN# ifdef WITH_COOKIES#  error "Cannot build WITH_LEAN code WITH_COOKIES enabled"# endif#endif#ifndef STDSOAP_H#define STDSOAP_H#ifdef _WIN32# ifndef WIN32#  define WIN32# endif#endif#ifdef UNDER_CE# ifndef WIN32#  define WIN32# endif#endif#ifdef __BORLANDC__# ifdef __WIN32__#  ifndef WIN32#   define WIN32#  endif# endif#endif#ifdef __CYGWIN__# ifndef CYGWIN#  define CYGWIN# endif#endif#ifdef __SYMBIAN32__ # define SYMBIAN#endif#ifdef __MWERKS__# define PALM#endif#ifdef PALM_GCC# define PALM#endif#ifdef HAVE_CONFIG_H# include "config.h"#else# if defined(UNDER_CE)#  define WITH_LEAN# elif defined(WIN32)#  define HAVE_SYS_TIMEB_H#  define HAVE_FTIME# elif defined(CYGWIN)#  define HAVE_SYS_TIMEB_H#  define HAVE_FTIME#  define HAVE_RAND_R#  define HAVE_GMTIME_R#  define HAVE_LOCALTIME_R# elif defined(__APPLE__)#  define HAVE_RAND_R#  define HAVE_GMTIME_R#  define HAVE_LOCALTIME_R#  define HAVE_TIMEGM# elif defined(_AIXVERSION_431)#  define HAVE_SYS_TIMEB_H#  define HAVE_FTIME#  define HAVE_RAND_R#  define HAVE_GMTIME_R#  define HAVE_LOCALTIME_R# elif defined(HP_UX)#  define HAVE_SYS_TIMEB_H#  define HAVE_FTIME#  define HAVE_RAND_R#  define HAVE_GMTIME_R#  define HAVE_LOCALTIME_R# elif defined(FREEBSD)#  define HAVE_GETTIMEOFDAY#  define HAVE_RAND_R#  define HAVE_GMTIME_R#  define HAVE_LOCALTIME_R# elif defined(__VMS)#  define HAVE_SYS_TIMEB_H#  define HAVE_FTIME#  define HAVE_RAND_R#  define HAVE_GMTIME_R#  define HAVE_LOCALTIME_R# elif defined(__GLIBC__)#  define HAVE_SYS_TIMEB_H#  define HAVE_FTIME#  define HAVE_RAND_R#  define HAVE_GMTIME_R#  define HAVE_LOCALTIME_R#  define HAVE_TIMEGM# elif defined(TRU64)#  define HAVE_GETTIMEOFDAY#  define HAVE_SYS_TIMEB_H#  define HAVE_RAND_R#  define HAVE_GMTIME_R#  define HAVE_LOCALTIME_R# elif defined(MAC_CARBON)#  define HAVE_FTIME#  define HAVE_RAND_R#  define HAVE_GETHOSTBYNAME_R#  define HAVE_GMTIME_R#  define HAVE_LOCALTIME_R# elif defined(PALM)#  ifndef CONST2#   define CONST2#  endif#  define WITH_LEAN#  define WITH_NONAMESPACES#  define _LINUX_CTYPE_H#  include <sys_types.h>   typedef WChar wchar_t;#  define IGNORE_STDIO_STUBS   typedef Int32 time_t;#  define tm HostTmType#  define strftime HostStrFTime#  define mktime HostMkTime#  define localtime HostLocalTime#  define tm_year tm_year_#  define tm_hour tm_hour_#  define tm_mon tm_mon_#  define tm_min tm_min_#  define tm_sec tm_sec_#  define tm_mday tm_mday_#  define tm_isdst tm_isdst_#  include <StdIOPalm.h>#  define O_NONBLOCK FNONBIO#  include <sys_time.h>#  if 1    void displayText(char *text);#   define pdebug(s) displayText(s) #   define pdebugV(s,p) sprintf(buff,s,p); displayText(buff)#  else#   define pdebug(s) WinDrawChars(s,strlen(s),10,10) #   define pdebugV(s,p) sprintf(buff,s,p); WinDrawChars(buff,strlen(buff),10,10)#  endif#  include "palmmissing.h"#  include "slib_socket.h"# elif defined(SYMBIAN)#  define WITH_LEAN#  define WITH_NONAMESPACES#  define CONST2 const#  undef SOAP_FMAC1#  define SOAP_FMAC1 EXPORT_C#  ifdef __cplusplus#   include <e32std.h>#  else#   define TInt64 long#  endif# else#  define HAVE_SYS_TIMEB_H#  define HAVE_FTIME#  define HAVE_RAND_R#  define HAVE_GETHOSTBYNAME_R#  define HAVE_GMTIME_R#  define HAVE_LOCALTIME_R# endif#endif#if defined(TRU64)# define SOAP_LONG_FORMAT "%ld"# define SOAP_ULONG_FORMAT "%lu"#elif defined(WIN32)# define SOAP_LONG_FORMAT "%I64d"# define SOAP_ULONG_FORMAT "%I64u"#endif#ifndef SOAP_LONG_FORMAT# define SOAP_LONG_FORMAT "%lld"	/* printf format for 64 bit ints */#endif#ifndef SOAP_ULONG_FORMAT# define SOAP_ULONG_FORMAT "%llu"	/* printf format for unsigned 64 bit ints */#endif#ifndef SOAP_MALLOC			/* use libc malloc */# define SOAP_MALLOC(n) malloc(n)#endif#ifndef SOAP_FREE			/* use libc free */# define SOAP_FREE(p) free(p)#endif#include <stdlib.h>#ifndef PALM# include <stdio.h>#endif#ifndef PALM_GCC# include <string.h>#endif#include <ctype.h>#include <limits.h>#if defined(__cplusplus) && !defined(UNDER_CE)# include <iostream>#endif#ifndef UNDER_CE# ifndef PALM#  include <errno.h>#  ifndef MAC_CARBON#   include <sys/types.h>#  endif#  ifndef WITH_LEAN#   ifdef HAVE_SYS_TIMEB_H#    include <sys/timeb.h>		/* for ftime() */#   endif#   include <time.h>#  endif# endif#endif#ifdef OPENSERVER# include <sys/socket.h># include <sys/stream.h># include <sys/protosw.h>  extern int h_errno;#endif#ifndef MAC_CARBON# ifndef WIN32#  ifndef PALM#   include <sys/socket.h>#   ifndef SYMBIAN#    include <strings.h>#   endif#   ifdef SUN_OS#    include <sys/stream.h>		/* SUN */#    include <sys/socketvar.h>		/* SUN < 2.8 (?) */#   endif#   include <sys/time.h>#   include <netinet/in.h>#   include <netinet/tcp.h>		/* TCP_NODELAY */#   include <arpa/inet.h>#  endif# endif#endif#ifdef WITH_FASTCGI# include <fcgi_stdio.h>#endif#ifdef WITH_OPENSSL# include <openssl/ssl.h># include <openssl/err.h># include <openssl/rand.h># ifndef ALLOW_OLD_VERSIONS#  if (OPENSSL_VERSION_NUMBER < 0x00905100L)#   error "Must use OpenSSL 0.9.6 or later"#  endif# endif#endif#ifdef WITH_GZIP# ifndef WITH_ZLIB#  define WITH_ZLIB# endif#endif#ifdef WITH_CASESENSITIVETAGS# define SOAP_TAG_CMP strcmp		/* case sensitive XML element tags */#else# define SOAP_TAG_CMP soap_tag_cmp#endif#ifdef WITH_ZLIB# include <zlib.h>#endif#ifndef PALM_GCC# include <math.h>	/* for isnan() */#endif/* #define DEBUG */ /* Uncomment to debug sending (in file SENT.log) receiving (in file RECV.log) and messages (in file TEST.log) */#ifdef __cplusplusextern "C" {#endif#define soap_get0(soap) (((soap)->bufidx>=(soap)->buflen && soap_recv(soap)) ? EOF : (unsigned char)(soap)->buf[(soap)->bufidx])#define soap_get1(soap) (((soap)->bufidx >= (soap)->buflen && soap_recv(soap)) ? EOF : (unsigned char)(soap)->buf[(soap)->bufidx++])#define soap_revget1(soap) ((soap)->bufidx--)#define soap_unget(soap, c) ((soap)->ahead = c)#define soap_register_plugin(soap, plugin) soap_register_plugin_arg(soap, plugin, NULL)#define soap_imode(soap, n) ((soap)->mode = (soap)->imode = (n))#define soap_set_imode(soap, n) ((soap)->mode = (soap)->imode |= (n))#define soap_clr_imode(soap, n) ((soap)->mode = (soap)->imode &= ~(n))#define soap_omode(soap, n) ((soap)->mode = (soap)->omode = (n))#define soap_set_omode(soap, n) ((soap)->mode = (soap)->omode |= (n))#define soap_clr_omode(soap, n) ((soap)->mode = (soap)->omode &= ~(n))#define soap_destroy(soap) soap_delete((soap), NULL)#ifdef WIN32# ifndef UNDER_CE#  include <io.h>#  include <fcntl.h># endif#  include <winsock.h># else# ifndef MAC_CARBON#  ifndef PALM#   include <netdb.h>#   include <netinet/in.h>#  endif#  include <unistd.h>#  include <fcntl.h># endif#endif#ifdef WIN32# define SOAP_SOCKET SOCKET#else# define SOAP_SOCKET int# define closesocket(n) close(n)#endif#define soap_valid_socket(n) ((n) >= 0)#define SOAP_INVALID_SOCKET (-1)#if (!defined(_MATH_H) && !defined(_MATH_INCLUDED))# ifndef isnan#  define isnan(_) (0)# endif#endifextern const struct soap_double_nan { unsigned int n1, n2; } soap_double_nan;#if defined(SYMBIAN)# define LONG64 TInt64# define ULONG64 TInt64#elif !defined(WIN32)# define LONG64 long long# define ULONG64 unsigned LONG64#elif defined(UNDER_CE)# define LONG64 __int64# define ULONG64 unsigned LONG64#elif defined(__BORLANDC__)# ifdef SYSMAC_H#  define LONG64 ::LONG64#  define ULONG64 ::ULONG64# endif#endif#ifdef WIN32# define SOAP_EINTR WSAEINTR# define SOAP_EAGAIN WSAEWOULDBLOCK# define SOAP_EWOULDBLOCK WSAEWOULDBLOCK

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -