]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/listener/class_BaseListener.php
Grouping by protocol of listeners in pool added
[hub.git] / application / hub / main / listener / class_BaseListener.php
index 48f0cbc7788110f6fcbafedec2f6d71d1f314105..3b8da261e9e5098d06840fd3796cef164939fea1 100644 (file)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 class BaseListener extends BaseHubSystem {
+       /**
+        * Used protocol (Default: invalid, which is invalid...)
+        */
+       private $protcol = 'invalid';
+
        /**
         * Address (IP mostly) we shall listen on
         */
@@ -105,6 +110,25 @@ class BaseListener extends BaseHubSystem {
        public final function setListenPortByConfiguration ($configEntry) {
                $this->setListenPort($this->getConfigInstance()->readConfig($configEntry));
        }
+
+       /**
+        * Setter for protocol
+        *
+        * @param       $protocol       Used protocol
+        * @return      void
+        */
+       protected final function setProtocol ($protocol) {
+               $this->protocol = (string) $protocol;
+       }
+
+       /**
+        * Getter for protocol
+        *
+        * @return      $protocol       Used protocol
+        */
+       public final function getProtocol () {
+               return $this->protocol;
+       }
 }
 
 // [EOF]