Source for file TCP.php
Documentation is available at TCP.php
// +----------------------------------------------------------------------+
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2003 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.02 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available at through the world-wide-web at |
// | http://www.php.net/license/2_02.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: Shane Hanna <iordy_at_iordy_dot_com> |
// +----------------------------------------------------------------------+
// $Id: TCP.php,v 1.3 2003/04/13 21:38:58 shane Exp $
require_once 'SOAP/Base.php';
* implement some security scheme
* implement support for attachments
* @package SOAP::Transport::TCP
* @author Shane Hanna <iordy_at_iordy_dot_com>
var $_userAgent = SOAP_LIBRARY_NAME;
* SOAP_Transport_TCP Constructor
* @param string $URL http url to soap endpoint
function _socket_ping () {
// XXX how do we restart after socket_shutdown?
if ($this->socket < 0 ) return 0;
if ($result < 0 ) return 0;
* send and receive soap data
* @param string &$msg outgoing post data
* @param string $action SOAP Action header data
* @return string|faultresponse
function &send(&$msg, $options = NULL )
$this->outgoing_payload = &$msg;
if (!$this->_validateUrl ()) return $this->fault;
if (!$this->_socket_ping ())
return $this->_raiseSoapFault ("can't change socket mode to read.");
# read everything we can.
return $this->_raiseSoapFault ("Error reveiving data from ". $this->url);
return $this->_raiseSoapFault ('Invalid url scheme '. $this->url);
* validate url data passed to constructor
$this->_raiseSoapFault (" Unable to parse URL $url" );
$this->_raiseSoapFault (" No host in URL $url" );
Documentation generated on Mon, 11 Mar 2019 13:59:47 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|