// Generate package decoder task
$taskInstance = ObjectFactory::createObjectByConfiguredName('node_package_decoder_task_class');
+ // Generate socket listener task
+ $taskInstance = ObjectFactory::createObjectByConfiguredName('node_socket_listener_task_class');
+
+ // Network package reader, needs to be delayed a little
+ $handlerInstance->registerTask('socket_listener', $taskInstance);
+
// Register it as well
$handlerInstance->registerTask('package_decoder', $taskInstance);
// Register it as well
$handlerInstance->registerTask('chunk_assembler', $taskInstance);
- // Generate socket listener task
- $taskInstance = ObjectFactory::createObjectByConfiguredName('node_socket_listener_task_class');
-
- // Network package reader, needs to be delayed a little
- $handlerInstance->registerTask('socket_listener', $taskInstance);
-
// Generate DHT initialization task
$taskInstance = ObjectFactory::createObjectByConfiguredName('node_dht_init_task_class');