From: Roland Häder Date: Wed, 21 Mar 2012 21:36:10 +0000 (+0000) Subject: Moved some constants and added block comments for better reading X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2e755ecfcc58f4f2efbc42547822ad9558cf59ce;p=hub.git Moved some constants and added block comments for better reading --- 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 *