PHP Class Thruway\Transport\RawSocketTransportProvider

Implements a transport provider on raw socket (for router)
Inheritance: extends AbstractRouterTransportProvider
Datei anzeigen Open project: voryx/thruway

Public Methods

Method Description
__construct ( string $address = "127.0.0.1", integer $port = 8181 ) Constructor
getSubscribedEvents ( )
handleClose ( Connection $conn ) Handle process on close transport
handleConnection ( Connection $conn ) Handle process on open new connection
handleRouterStart ( Thruway\Event\RouterStartEvent $event )
handleRouterStop ( Thruway\Event\RouterStopEvent $event )

Method Details

__construct() public method

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

getSubscribedEvents() public static method

public static getSubscribedEvents ( )

handleClose() public method

Handle process on close transport
public handleClose ( Connection $conn )
$conn React\Socket\Connection

handleConnection() public method

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

handleRouterStart() public method

public handleRouterStart ( Thruway\Event\RouterStartEvent $event )
$event Thruway\Event\RouterStartEvent

handleRouterStop() public method

public handleRouterStop ( Thruway\Event\RouterStopEvent $event )
$event Thruway\Event\RouterStopEvent