* 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
*/
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]