From 2e755ecfcc58f4f2efbc42547822ad9558cf59ce Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 21 Mar 2012 21:36:10 +0000 Subject: [PATCH] Moved some constants and added block comments for better reading --- .../hub/main/package/class_NetworkPackage.php | 42 ++++++++++++------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/application/hub/main/package/class_NetworkPackage.php b/application/hub/main/package/class_NetworkPackage.php index 12487d829..f2fe68cd8 100644 --- a/application/hub/main/package/class_NetworkPackage.php +++ b/application/hub/main/package/class_NetworkPackage.php @@ -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 * -- 2.39.5