*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Core Developer Team
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2016 Core Developer Team
* @license GNU GPL 3.0 or any newer version
* @link http://www.ship-simu.org
*
protected function __construct () {
// Call parent constructor
parent::__construct(__CLASS__);
+
+ // Set the protocol to !!!
+ $this->setProtocolName('!!!');
}
/**
* Creates an instance of this class
*
- * @param $nodeInstance A NodeHelper instance
* @return $listenerInstance An instance a prepared listener class
*/
- public final static function create???Listener (NodeHelper $nodeInstance) {
+ public final static function create???Listener () {
// Get new instance
$listenerInstance = new ???Listener();
- // Set the application instance
- $listenerInstance->setNodeInstance($nodeInstance);
-
// Return the prepared instance
return $listenerInstance;
}
public function doListen() {
$this->partialStub('Need to implement this method.');
}
-}
-// [EOF]
-?>
+ /**
+ * Checks whether the listener would accept the given package data array
+ *
+ * @param $packageData Raw package data
+ * @return $accepts Whether this listener does accept
+ */
+ public function ifListenerAcceptsPackageData (array $packageData) {
+ $this->partialStub('Need to implement this method.') {
+ }
+
+ /**
+ * Monitors incoming raw data from the handler and transfers it to the
+ * given receiver instance.
+ *
+ * @return void
+ */
+ public function monitorIncomingRawData () {
+ $this->partialStub('Need to implement this method.') {
+ }
+
+ /**
+ * Getter for connection type
+ *
+ * @return $connectionType Connection type for this listener
+ */
+ public function getConnectionType () {
+ $this->partialStub('Need to implement this method.') {
+ }
+
+}