Skip to content
Browse files

Docs

  • Loading branch information...
1 parent d2bb816 commit c54b731579dc984427953ab97cacc076ddc14ec0 @kakserpom committed Mar 20, 2013
Showing with 35 additions and 4 deletions.
  1. +33 −2 lib/DNSClient.php
  2. +2 −2 lib/IOStream.php
View
35 lib/DNSClient.php
@@ -213,14 +213,44 @@ public function get($hostname, $cb, $noncache = false) {
}
}
class DNSClientConnection extends NetworkClientConnection {
+
+ /**
+ * Sequence
+ * @var integer
+ */
protected $seq = 0;
+
+ /**
+ * Keepalive?
+ * @var boolean
+ */
protected $keepalive = true;
- protected $response = [];
+
+ /**
+ * Response
+ * @var hash
+ */
+ public $response = [];
+
const STATE_PACKET = 1;
+
+ /**
+ * Current packet sie
+ * @var boolean
+ */
protected $pctSize = 0;
+
+ /**
+ * Default low mark. Minimum number of bytes in buffer.
+ * @var integer
+ */
protected $lowMark = 2;
- protected $highMark = 512;
+ /**
+ * Default high mark. Maximum number of bytes in buffer.
+ * @var integer
+ */
+ protected $highMark = 512;
/**
* Called when new UDP packet received.
@@ -400,6 +430,7 @@ public function get($hostname, $cb) {
$this->write(Binary::word(strlen($packet)) . $packet);
}
}
+
/**
* Called when connection finishes
* @return void
View
4 lib/IOStream.php
@@ -74,13 +74,13 @@
/**
* Default low mark. Minimum number of bytes in buffer.
* @var integer
- */
+ */
protected $lowMark = 1;
/**
* Default high mark. Maximum number of bytes in buffer.
* @var integer
- */
+ */
protected $highMark = 0xFFFF; // initial value of the maximum amout of bytes in buffer
/**

0 comments on commit c54b731

Please sign in to comment.
Something went wrong with that request. Please try again.