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 Caraveo <Shane@Caraveo.com> Port to PEAR and more |
// +----------------------------------------------------------------------+
// $Id: TCP.php,v 1.5 2005/05/03 21:12:46 chagenbu Exp $
require_once 'SOAP/Server.php';
* SOAP Server Class that implements a TCP SOAP Server.
* http://www.pocketsoap.com/specs/smtpbinding/
* This class overrides the default HTTP server, providing the ability to
* accept socket connections and execute SOAP calls.
* implement some security scheme
* implement support for attachments
* @author Shane Caraveo <shane@php.net>
$listen = 5 , $reuse = true )
return $this->_raiseSoapFault ('socket_create() failed. Reason: ' . socket_strerror($sock));
return $this->_raiseSoapFault ('socket_bind() failed. Reason: ' . socket_strerror($ret));
return $this->_raiseSoapFault ('socket_listen() failed. Reason: ' . socket_strerror($ret));
$this->_raiseSoapFault ('socket_accept() failed. Reason: ' . socket_strerror($msgsock));
if (!$buf = trim($buf)) {
/* Write to the socket. */
return $this->_raiseSoapFault ('Error sending response data reason ' . socket_strerror());
/* TODO: we need to handle attachments somehow. */
Documentation generated on Mon, 11 Mar 2019 14:20:05 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|