]> git.mxchange.org Git - core.git/commitdiff
Setting a listener type is needed for later pooling.
authorRoland Haeder <roland@mxchange.org>
Sat, 12 Sep 2015 06:03:28 +0000 (08:03 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 12 Sep 2015 06:03:28 +0000 (08:03 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
inc/main/classes/listener/class_
inc/main/classes/listener/socket/class_SocketFileListener.php

index 9c6006537a1f6a2342dd131541fe27c9fe078b00..f4ac2cb03b0b11f0d9da4f5853454700081303b2 100644 (file)
@@ -30,6 +30,9 @@ class ???Listener extends BaseListener implements Listenable {
        protected function __construct () {
                // Call parent constructor
                parent::__construct(__CLASS__);
        protected function __construct () {
                // Call parent constructor
                parent::__construct(__CLASS__);
+
+               // Set the protocol to !!!
+               $this->setProtocolName('!!!');
        }
 
        /**
        }
 
        /**
index fcb8dc8d9a2e06996a517f310d87995c527c0ac8..4dea353cdb831787198152657fffeedefa5a61d5 100644 (file)
@@ -30,6 +30,9 @@ class SocketFileListener extends BaseListener implements Listenable {
        protected function __construct () {
                // Call parent constructor
                parent::__construct(__CLASS__);
        protected function __construct () {
                // Call parent constructor
                parent::__construct(__CLASS__);
+
+               // Set the protocol to file
+               $this->setProtocolName('file');
        }
 
        /**
        }
 
        /**