]> git.mxchange.org Git - hub.git/commitdiff
Moved some constants and added block comments for better reading
authorRoland Häder <roland@mxchange.org>
Wed, 21 Mar 2012 21:36:10 +0000 (21:36 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 21 Mar 2012 21:36:10 +0000 (21:36 +0000)
application/hub/main/package/class_NetworkPackage.php

index 12487d829b2d8078ba5e975a4e94dcd36c425302..f2fe68cd8193eaef9d31d9c6df3d5af825737fff 100644 (file)
@@ -96,6 +96,25 @@ class NetworkPackage extends BaseFrameworkSystem implements Deliverable, Receiva
         */
        const PACKAGE_DATA_SEPARATOR = '#';
 
+       /**
+        * Network target (alias): 'upper hubs'
+        */
+       const NETWORK_TARGET_UPPER_HUBS = 'upper';
+
+       /**
+        * Network target (alias): 'self'
+        */
+       const NETWORK_TARGET_SELF = 'self';
+
+       /**
+        * TCP package size in bytes
+        */
+       const TCP_PACKAGE_SIZE = 512;
+
+       /**************************************************************************
+        *                    Stacker for out-going packages                      *
+        **************************************************************************/
+
        /**
         * Stacker name for "undeclared" packages
         */
@@ -111,6 +130,10 @@ class NetworkPackage extends BaseFrameworkSystem implements Deliverable, Receiva
         */
        const STACKER_NAME_OUTGOING = 'package_outgoing';
 
+       /**************************************************************************
+        *                     Stacker for incoming packages                      *
+        **************************************************************************/
+
        /**
         * Stacker name for "incoming" decoded raw data
         */
@@ -126,26 +149,15 @@ class NetworkPackage extends BaseFrameworkSystem implements Deliverable, Receiva
         */
        const STACKER_NAME_DECODED_CHUNKED = 'package_chunked_decoded';
 
+       /**************************************************************************
+        *                   Stacker for other/internal purposes                  *
+        **************************************************************************/
+
        /**
         * Stacker name for "back-buffered" packages
         */
        const STACKER_NAME_BACK_BUFFER = 'package_backbuffer';
 
-       /**
-        * Network target (alias): 'upper hubs'
-        */
-       const NETWORK_TARGET_UPPER_HUBS = 'upper';
-
-       /**
-        * Network target (alias): 'self'
-        */
-       const NETWORK_TARGET_SELF = 'self';
-
-       /**
-        * TCP package size in bytes
-        */
-       const TCP_PACKAGE_SIZE = 512;
-
        /**
         * Protected constructor
         *