]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/listener/tcp/class_TcpListener.php
Continued with refactoring:
[hub.git] / application / hub / main / listener / tcp / class_TcpListener.php
index ed4403515feca878427a48b6451782aa98c5fde9..faacca976f7caca8e842cd22fc7d10ae7116619e 100644 (file)
@@ -289,11 +289,17 @@ class TcpListener extends BaseListener implements Listenable {
                                NetworkPackage::PACKAGE_DATA_STATUS    => NetworkPackage::PACKAGE_STATUS_FAKED
                        );
 
+                       // Get a connection info instance
+                       $infoInstance = ConnectionInfoFactory::createConnectionInfoInstance();
+
+                       // Will the info instance with listener data
+                       $infoInstance->fillWithListenerInformation($this);
+
                        // Get a socket registry
                        $registryInstance = SocketRegistryFactory::createSocketRegistryInstance();
 
                        // Register the socket with the registry and with the faked array
-                       $registryInstance->registerSocket($this, $newSocket, $packageData);
+                       $registryInstance->registerSocket($infoInstance, $newSocket, $packageData);
                } // END - if
 
                // Do we have to rewind?