$iteratorInstance->rewind();
$this->setIteratorInstance($iteratorInstance);
+ // Initialize the network package handler
+ $packageInstance = ObjectFactory::createObjectByConfiguredName('tcp_network_package_handler_class');
+
+ // Set it in this class
+ $this->setPackageInstance($packageInstance);
+
// Output message
$this->debugOutput('LISTENER: TCP listener now ready on IP ' . $this->getListenAddress() . ', port ' . $this->getListenPort() . ' for service.');
}
$current = $this->getIteratorInstance()->current();
// Handle it here
- $this->partialStub('current['.gettype($current).']='.$current);
+ $this->getPackageInstance()->processPackage($current);
// Advance to next entry. This should be the last line
$this->getIteratorInstance()->next();
- die("OK!\n");
}
}