PHP Class PHPDaemon\Clients\DNS\Connection

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

Méthodes publiques

Свойство Type Description
$response Response

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
getMessageByRcode ( integer $rcode ) : string

Method Details

get() public méthode

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

getMessageByRcode() protected méthode

protected getMessageByRcode ( integer $rcode ) : string
$rcode integer
Résultat string

onFinish() public méthode

Called when connection finishes
public onFinish ( ) : void
Résultat void

onRead() public méthode

Called when new data received
public onRead ( ) : void
Résultat void

onUdpPacket() public méthode

Called when new UDP packet received.
public onUdpPacket ( string $pct ) : void
$pct string
Résultat 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