*/
public function resolveRecipient ($recipient, Listable $listInstance) {
// Make sure the recipient is valid
- assert($recipient == 'dht');
+ /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DHT-RECIPIENT: recipient=' . $recipient);
+ assert($recipient == NetworkPacke::PACKAGE_RECIPIENT_DHT);
$this->partialStub('Please implement this method. recipient=' . $recipient);
}
}
* @throws FrameworkException Could throw different exceptions depending on implementation
*/
public function resolveRecipient ($recipient, Listable $listInstance = NULL) {
+ // Debug message
+ /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DIRECT-RECIPIENT: recipient=' . $recipient);
+
// "Explode" all recipients
$recipients = explode(NetworkPackage::PACKAGE_RECIPIENT_SEPARATOR, $recipient);
*/
public function resolveRecipient ($recipient, Listable $listInstance) {
// Make sure the recipient is valid
- assert($recipient == 'self');
+ /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('SELF-RECIPIENT: recipient=' . $recipient);
+ assert($recipient == NetworkPackage::NETWORK_TARGET_SELF);
// Determine own port
$port = $this->getConfigInstance()->getConfigEntry('node_listen_port');
*/
public function resolveRecipient ($recipient, Listable $listInstance) {
// Make sure the recipient is valid
- assert($recipient == 'upper');
+ /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('UPPER-RECIPIENT: recipient=' . $recipient);
+ assert($recipient == NetworkPackage::PACKAGE_RECIPIENT_UPPER);
// Get all bootstrap nodes
foreach (explode(BaseHubSystem::BOOTSTRAP_NODES_SEPARATOR, $this->getConfigInstance()->getConfigEntry('hub_bootstrap_nodes')) as $ipPort) {