PHP Class Thruway\Transport\RawSocketClientTransportProvider

Implements transport provider on raw socket for client
Inheritance: implements Thruway\Transport\TransportProviderInterface
Datei anzeigen Open project: voryx/thruway

Public Methods

Method Description
__construct ( string $address = "127.0.0.1", integer $port = 8181 ) Constructor
handleClose ( Stream $conn ) Handle process on close connection
handleConnection ( Stream $conn ) Handle process on open new connection
handleData ( mixed $data, Stream $conn ) Handle process reveiced data
startTransportProvider ( Thruway\Peer\ClientInterface $client, React\EventLoop\LoopInterface $loop ) Start transport provider

Method Details

__construct() public method

Constructor
public __construct ( string $address = "127.0.0.1", integer $port = 8181 )
$address string
$port integer

handleClose() public method

Handle process on close connection
public handleClose ( Stream $conn )
$conn React\Stream\Stream

handleConnection() public method

Handle process on open new connection
public handleConnection ( Stream $conn )
$conn React\Stream\Stream

handleData() public method

Handle process reveiced data
public handleData ( mixed $data, Stream $conn )
$data mixed
$conn React\Stream\Stream

startTransportProvider() public method

Start transport provider
public startTransportProvider ( Thruway\Peer\ClientInterface $client, React\EventLoop\LoopInterface $loop )
$client Thruway\Peer\ClientInterface
$loop React\EventLoop\LoopInterface