Source for file unix-connection.php
Documentation is available at unix-connection.php
* Simple unix socket connction
* $Id: unix-connection.php,v 1.4 2004/04/25 16:31:19 mike Exp $
require_once 'System/Socket/Creator.php';
* Create the unix domain socket with the specified parameters passed through
* to the underlying System_Socket. Most of the used options are typical for
* such a unix domain socket connection.
* Note that unix domain sockets are not available on Win32.
$sock = &System_Socket_Creator ::createConnection (
array ( 'proto' => SOL_SOCKET ,
'address' => '/tmp/pear.sock',
* $sock = &System_Socket_Creator::createUnixConnection('/tmp/pear.sock');
* Loop while we're connected
while ($sock->hasSocket ) {
// read a line from STDIN
// write the string through the socket connection
// if we catched an "exit" close our connection
Documentation generated on Mon, 11 Mar 2019 10:15:56 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|