]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/handler/network/class_BaseRawDataHandler.php
Rewrites, some more methods:
[hub.git] / application / hub / main / handler / network / class_BaseRawDataHandler.php
index 331f160fe5d2f256569b48faf3c8ebd736dc473c..57857bfcdacb6815fbfe7203b213f2df1fc9f7e2 100644 (file)
@@ -48,6 +48,10 @@ class BaseRawDataHandler extends BaseHandler {
        const PACKAGE_RAW_DATA   = 'raw_data';
        const PACKAGE_ERROR_CODE = 'error_code';
 
+       // Start/end marker
+       const STREAM_START_MARKER = '[[S]]';
+       const STREAM_END_MARKER   = '[[E]]';
+
        /**
         * Stacker for raw data
         */
@@ -143,7 +147,7 @@ class BaseRawDataHandler extends BaseHandler {
         */
        protected function ifRecipientMatchesOwnAddress (array $packageData) {
                // Construct own address first
-               $ownAddress = Registry::getRegistry()->getInstance('node')->getAddressPort($this);
+               $ownAddress = Registry::getRegistry()->getInstance('node')->getAddressPort();
 
                // Does it match?
                $matches = ($ownAddress === $packageData[NetworkPackage::PACKAGE_DATA_RECIPIENT]);