* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
interface Listenable extends FrameworkInterface {
+ /**
+ * Initializes the listener by setting up the required socket server
+ *
+ * @return void
+ */
+ function initListener();
}
//
// Return the prepared instance
return $listenerInstance;
}
+
+ /**
+ * Initializes the listener by setting up the required socket server
+ *
+ * @return void
+ * @todo 0% done
+ */
+ public function initListener() {
+ $this->partialStub('Need to implement this method.');
+ }
}
// [EOF]
// Return the prepared instance
return $listenerInstance;
}
+
+ /**
+ * Initializes the listener by setting up the required socket server
+ *
+ * @return void
+ */
+ public function initListener() {
+ $this->partialStub('Need to implement this method.');
+ }
}
// [EOF]
// Return the prepared instance
return $listenerInstance;
}
+
+ /**
+ * Initializes the listener by setting up the required socket server
+ *
+ * @return void
+ */
+ public function initListener() {
+ $this->partialStub('Need to implement this method.');
+ }
}
// [EOF]
$listenerInstance->setListenAddressByConfiguration('node_listen_addr');
$listenerInstance->setListenPortByConfiguration('node_tcp_listen_port');
+ // Initialize the listener
+ $listenerInstance->initListener();
+
// Initialize the UDP listener
$listenerInstance = ObjectFactory::createObjectByConfiguredName('udp_listener_class', array($this));
// Setup address and port
$listenerInstance->setListenAddressByConfiguration('node_listen_addr');
$listenerInstance->setListenPortByConfiguration('node_udp_listen_port');
+
+ // Initialize the listener
+ $listenerInstance->initListener();
}
}