PHP Class HTTPServer, JAXL

Author: Scott Mattocks
Show file Open project: jaxl/JAXL Class Usage Examples

Public Properties

Property Type Description
$cb callable

Public Methods

Method Description
__construct ( $port = 9699, $address = "127.0.0.1" )
__destruct ( )
dispatch ( $rules )
on_accept ( $sock, $addr )
on_request ( $sock, $raw )
start ( callable $cb = null )

Method Details

__construct() public method

public __construct ( $port = 9699, $address = "127.0.0.1" )

__destruct() public method

public __destruct ( )

dispatch() public method

public dispatch ( $rules )

on_accept() public method

public on_accept ( $sock, $addr )

on_request() public method

public on_request ( $sock, $raw )

start() public method

public start ( callable $cb = null )
$cb callable

Property Details

$cb public property

public callable $cb
return callable