PHP Class PHPDaemon\Clients\DNS\Connection

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

Public Properties

Property Type Description
$response Response

Protected Properties

Property Type Description
$highMark Default high mark. Maximum number of bytes in buffer.
$lowMark Default low mark. Minimum number of bytes in buffer.
$pctSize Current packet size
$rcodeMessages
$seq Sequence

Public Methods

Method Description
get ( string $hostname, callable $cb ) : void Gets the host information
onFinish ( ) : void Called when connection finishes
onRead ( ) : void Called when new data received
onUdpPacket ( string $pct ) : void Called when new UDP packet received.

Protected Methods

Method Description
getMessageByRcode ( integer $rcode ) : string

Method Details

get() public method

Gets the host information
public get ( string $hostname, callable $cb ) : void
$hostname string Hostname
$cb callable Callback
return void

getMessageByRcode() protected method

protected getMessageByRcode ( integer $rcode ) : string
$rcode integer
return string

onFinish() public method

Called when connection finishes
public onFinish ( ) : void
return void

onRead() public method

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

onUdpPacket() public method

Called when new UDP packet received.
public onUdpPacket ( string $pct ) : void
$pct string
return void

Property Details

$highMark protected_oe property

Default high mark. Maximum number of bytes in buffer.
protected $highMark

$lowMark protected_oe property

Default low mark. Minimum number of bytes in buffer.
protected $lowMark

$pctSize protected_oe property

Current packet size
protected $pctSize

$rcodeMessages protected_oe property

protected $rcodeMessages

$response public_oe property

Response
public $response

$seq protected_oe property

Sequence
protected $seq