PHP Class JAXLSocketServer, JAXL

Show file Open project: jaxl/JAXL Class Usage Examples

Public Properties

Property Type Description
$fd

Public Methods

Method Description
__construct ( $path, $accept_cb, $request_cb )
__destruct ( )
close ( $client_id )
on_client_read_ready ( $client )
on_client_write_ready ( $client )
on_server_accept_ready ( $server )
read ( $client_id )
send ( integer $client_id, string $data )

Protected Methods

Method Description
add_read_cb ( $client_id )
add_write_cb ( $client_id )
del_read_cb ( $client_id )
del_write_cb ( $client_id )

Method Details

__construct() public method

public __construct ( $path, $accept_cb, $request_cb )

__destruct() public method

public __destruct ( )

add_read_cb() protected method

protected add_read_cb ( $client_id )

add_write_cb() protected method

protected add_write_cb ( $client_id )

close() public method

public close ( $client_id )

del_read_cb() protected method

protected del_read_cb ( $client_id )

del_write_cb() protected method

protected del_write_cb ( $client_id )

on_client_read_ready() public method

public on_client_read_ready ( $client )

on_client_write_ready() public method

public on_client_write_ready ( $client )

on_server_accept_ready() public method

public on_server_accept_ready ( $server )

read() public method

public read ( $client_id )

send() public method

public send ( integer $client_id, string $data )
$client_id integer
$data string

Property Details

$fd public property

public $fd