]> git.mxchange.org Git - hub.git/blobdiff - application/hub/interfaces/listener/class_Listenable.php
A lot changes for refacturing protocol handler
[hub.git] / application / hub / interfaces / listener / class_Listenable.php
index ba1875ad05c4d9683d8997a87e0cb4a5c7c694b7..ec878cc538ffe69823c904c3b88d092d5e6e49df 100644 (file)
@@ -21,7 +21,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
-interface Listenable extends ProtocolHandler {
+interface Listenable extends FrameworkInterface {
        /**
         * Initializes the listener by setting up the required socket server
         *
@@ -52,6 +52,27 @@ interface Listenable extends ProtocolHandler {
         * @return      void
         */
        function monitorIncomingRawData (Receivable $receiverInstance);
+
+       /**
+        * Getter for listen address
+        *
+        * @return      $listenAddress  The address this listener should listen on
+        */
+       function getListenAddress ();
+
+       /**
+        * Getter for listen port
+        *
+        * @return      $listenPort             The port this listener should listen on
+        */
+       function getListenPort ();
+
+       /**
+        * Getter for peer pool instance
+        *
+        * @return      $poolInstance   The peer pool instance we shall set
+        */
+       function getPoolInstance ();
 }
 
 // [EOF]