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

📄 udp.h

📁 linux下简单对象应用协议的开发库
💻 H
字号:
/*udp.hSOAP-over-UDP demo specification for udpclient and udpserver examplesRequires WS-Addressing from import/wsa.h--------------------------------------------------------------------------------gSOAP XML Web services toolsCopyright (C) 2001-2004, Robert van Engelen, Genivia, Inc. All Rights Reserved.This software is released under one of the following two licenses:GPL or Genivia's license for commercial use.--------------------------------------------------------------------------------GPL license.This program is free software; you can redistribute it and/or modify it underthe terms of the GNU General Public License as published by the Free SoftwareFoundation; either version 2 of the License, or (at your option) any laterversion.This program is distributed in the hope that it will be useful, but WITHOUT ANYWARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR APARTICULAR PURPOSE. See the GNU General Public License for more details.You should have received a copy of the GNU General Public License along withthis program; if not, write to the Free Software Foundation, Inc., 59 TemplePlace, Suite 330, Boston, MA 02111-1307 USAAuthor contact information:engelen@genivia.com / engelen@acm.org--------------------------------------------------------------------------------A commercial use license is available from Genivia, Inc., contact@genivia.com--------------------------------------------------------------------------------*/////////////////////////////////////////////////////////////////////////////////////	Import WS-Addressing////////////////////////////////////////////////////////////////////////////////////gsoap wsa schema import: http://schemas.xmlsoap.org/ws/2004/08/addressing#import "wsa.h"		// wsa.h is in the import directory////////////////////////////////////////////////////////////////////////////////////	Demo UDP service////////////////////////////////////////////////////////////////////////////////////gsoap ns service name:	udp//gsoap ns service namespace:	urn:gsoap-udp-demo//gsoap ns service location:	soap.udp://localhost:10000//	I would assume UDP transport to be defined in the WSDL bindings, but//	this doesn't appear to be possible, so we will use the default HTTP//	transport binding and omit the transport directive below.//	gsoap ns service transport:	... ???////////////////////////////////////////////////////////////////////////////////////	SOAP-over-UDP SOAP Headers with WS-Addressing//////////////////////////////////////////////////////////////////////////////////struct SOAP_ENV__Header{  mustUnderstand _wsa__MessageID      wsa__MessageID 0; ///< WS-Addressing  mustUnderstand _wsa__RelatesTo     *wsa__RelatesTo 0; ///< WS-Addressing  mustUnderstand _wsa__From          *wsa__From      0; ///< WS-Addressing  mustUnderstand _wsa__ReplyTo       *wsa__ReplyTo   0; ///< WS-Addressing  mustUnderstand _wsa__FaultTo       *wsa__FaultTo   0; ///< WS-Addressing  mustUnderstand _wsa__To             wsa__To        0; ///< WS-Addressing  mustUnderstand _wsa__Action         wsa__Action    0; ///< WS-Addressing};////////////////////////////////////////////////////////////////////////////////////	echoString (anonymous) request-response MEP over UDP////////////////////////////////////////////////////////////////////////////////////gsoap ns service method-documentation: echoString Demo (anonymous) request-response MEP over UDP//gsoap ns service method-header-part:		echoString wsa__MessageID//gsoap ns service method-header-part:		echoString wsa__To//gsoap ns service method-header-part:		echoString wsa__Action//gsoap ns service method-input-header-part:	sendString wsa__ReplyTo//gsoap ns service method-output-header-part:	echoString wsa__RelatesToint ns__echoString(char *str, char **res);////////////////////////////////////////////////////////////////////////////////////	sendString one-way MEP over UDP////////////////////////////////////////////////////////////////////////////////////gsoap ns service method-documentation: sendString Demo one-way MEP over UDP//gsoap ns service method-header-part:		sendString wsa__MessageID//gsoap ns service method-header-part:		sendString wsa__To//gsoap ns service method-header-part:		sendString wsa__Actionint ns__sendString(char *str, void);

⌨️ 快捷键说明

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