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
Afficher le fichier Open project: jaxl/JAXL Class Usage Examples

Méthodes publiques

Свойство Type Description
$name string

Protected Properties

Свойство Type Description
$client JAXLSocketClient
$fd
$perm
$recv_cb callable

Méthodes publiques

Méthode 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 méthode

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

__destruct() public méthode

public __destruct ( )

get_pipe_file_path() public méthode

public get_pipe_file_path ( ) : string
Résultat string

on_data() public méthode

public on_data ( $data )

set_callback() public méthode

public set_callback ( callable $recv_cb )
$recv_cb callable

Property Details

$client protected_oe property

protected JAXLSocketClient $client
Résultat JAXLSocketClient

$fd protected_oe property

protected $fd

$name public_oe property

public string $name
Résultat string

$perm protected_oe property

protected $perm

$recv_cb protected_oe property

protected callable $recv_cb
Résultat callable