]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/listener/tcp/decorators/class_HubTcpListenerDecorator.php
Moved a lot classes, added visitors and methods
[hub.git] / application / hub / main / listener / tcp / decorators / class_HubTcpListenerDecorator.php
index 109de807278a8139e2c8df3973ac61cd1d2277c3..0335e98ce17c598bf2321ebb784c3d1edf21e315 100644 (file)
@@ -57,6 +57,19 @@ class HubTcpListenerDecorator extends BaseListenerDecorator implements Listenabl
        public function initListener() {
                $this->partialStub('WARNING: This method should not be called.');
        }
+
+       /**
+        * "Listens" for incoming network packages
+        *
+        * @return      void
+        */
+       public function doListen() {
+               // Handle generic TCP package
+               $this->getListenerInstance()->doListen();
+
+               // Handle hub TCP package
+               $this->partialStub('Need to handle hub TCP package.');
+       }
 }
 
 // [EOF]