PHP Class PHPDaemon\Clients\ICMP\Connection

Author: Vasily Zorin ([email protected])
Inheritance: extends PHPDaemon\Network\ClientConnection
Exibir arquivo Open project: kakserpom/phpdaemon

Protected Properties

Property Type Description
$bevConnectEnabled Enable bevConnect?
$seq Packet sequence
$unreachableCodes array @TODO DESCR

Public Methods

Method Description
onRead ( ) : void Called when new data received
sendEcho ( callable $cb, string $data = 'phpdaemon' ) : void Send echo-request

Protected Methods

Method Description
checksum ( string $data ) : string Build checksum

Method Details

checksum() protected static method

Build checksum
protected static checksum ( string $data ) : string
$data string Source
return string Checksum

onRead() public method

Called when new data received
public onRead ( ) : void
return void

sendEcho() public method

Send echo-request
public sendEcho ( callable $cb, string $data = 'phpdaemon' ) : void
$cb callable Callback
$data string Data
return void

Property Details

$bevConnectEnabled protected_oe property

Enable bevConnect?
protected $bevConnectEnabled

$seq protected_oe property

Packet sequence
protected $seq

$unreachableCodes protected_oe static_oe property

@TODO DESCR
protected static array $unreachableCodes
return array