Response.php
- Author
- Vasil Rangelov
- Category
- Net
- Copyright
- 2011 Vasil Rangelov
- License
- LGPL License 2.1
- Link
- http://pear2.php.net/PEAR2_Net_RouterOS
- Package
- PEAR2_Net_RouterOS
- Version
- 1.0.0b4
\PEAR2\Net\RouterOS\Response
- Parent(s)
- \PEAR2\Net\RouterOS\Message
- Author
- Vasil Rangelov
- Category
- Net
- License
- LGPL License 2.1
- Link
- http://pear2.php.net/PEAR2_Net_RouterOS
Constants
Properties
Methods


__construct(\PEAR2\Net\RouterOS\Communicator $com, bool $asStream = false, int $timeout_s = 0, int $timeout_us = null, \PEAR2\Net\RouterOS\Registry $reg = null) : void
Extracts a new response from a communicator.
Name | Type | Description |
---|---|---|
$com | \PEAR2\Net\RouterOS\Communicator | The communicator from which to extract the new response. |
$asStream | bool | Whether to populate the argument values with streams instead of strings. |
$timeout_s | int | If a response is not immediatly available, wait this many seconds. If NULL, wait indefinetly. |
$timeout_us | int | Microseconds to add to the waiting time. |
$reg | \PEAR2\Net\RouterOS\Registry | An optional registry to sync the response with. |


_receive(\PEAR2\Net\RouterOS\Communicator $com, bool $asStream = false, int $timeout_s = 0, int $timeout_us = null) : void
Extracts a new response from a communicator.
Name | Type | Description |
---|---|---|
$com | \PEAR2\Net\RouterOS\Communicator | The communicator from which to extract the new response. |
$asStream | bool | Whether to populate the argument values with streams instead of strings. |
$timeout_s | int | If a response is not immediatly available, wait this many seconds. If NULL, wait indefinetly. |
$timeout_us | int | Microseconds to add to the waiting time. |


getUnrecognizedWords() : array
Gets a list of unrecognized words.
Type | Description |
---|---|
array | The list of unrecognized words. |


setType(string $type) : \PEAR2\Net\RouterOS\Response | \PEAR2\Net\RouterOS\Response
Sets the response type.
Name | Type | Description |
---|---|---|
$type | string | The new response type. |
Type | Description |
---|---|
\PEAR2\Net\RouterOS\Response | \PEAR2\Net\RouterOS\Response | The response object. |