PHP Class JAXLPipe, JAXL

This is how this will be (when complete): $pipe = new JAXLPipe() will return an array of size 2 $pipe[0] represents the read end of the pipe $pipe[1] represents the write end of the pipe Proposed functionality might even change (currently consider this as experimental)
Author: abhinavsingh
Mostra file Open project: jaxl/JAXL Class Usage Examples

Public Properties

Property Type Description
$name string

Protected Properties

Property Type Description
$client JAXLSocketClient
$fd
$perm
$recv_cb callable

Public Methods

Method Description
__construct ( string $name, callable $read_cb = null )
__destruct ( )
get_pipe_file_path ( ) : string
on_data ( $data )
set_callback ( callable $recv_cb )

Method Details

__construct() public method

public __construct ( string $name, callable $read_cb = null )
$name string
$read_cb callable TODO: Currently not used

__destruct() public method

public __destruct ( )

get_pipe_file_path() public method

public get_pipe_file_path ( ) : string
return string

on_data() public method

public on_data ( $data )

set_callback() public method

public set_callback ( callable $recv_cb )
$recv_cb callable

Property Details

$client protected_oe property

protected JAXLSocketClient $client
return JAXLSocketClient

$fd protected_oe property

protected $fd

$name public_oe property

public string $name
return string

$perm protected_oe property

protected $perm

$recv_cb protected_oe property

protected callable $recv_cb
return callable