PHP Class JAXLSocketClient, JAXL

..
Author: abhinavsingh
Mostra file Open project: jaxl/JAXL Class Usage Examples

Public Properties

Property Type Description
$errno
$errstr
$fd

Public Methods

Method Description
__construct ( resource $stream_context = null )
__destruct ( )
compress ( )
connect ( string | resource $socket_path )
crypt ( )
disconnect ( )
on_read_ready ( $fd )
on_write_ready ( $fd )
send ( string $data )
set_callback ( callable $recv_cb ) Emits on on_read_ready.

Method Details

__construct() public method

public __construct ( resource $stream_context = null )
$stream_context resource Resource created with stream_context_create().

__destruct() public method

public __destruct ( )

compress() public method

public compress ( )

connect() public method

public connect ( string | resource $socket_path )
$socket_path string | resource

crypt() public method

public crypt ( )

disconnect() public method

public disconnect ( )

on_read_ready() public method

public on_read_ready ( $fd )

on_write_ready() public method

public on_write_ready ( $fd )

send() public method

public send ( string $data )
$data string

set_callback() public method

Emits on on_read_ready.
public set_callback ( callable $recv_cb )
$recv_cb callable

Property Details

$errno public_oe property

public $errno

$errstr public_oe property

public $errstr

$fd public_oe property

public $fd