*/
public static final function createSocketContainer ($socketResource, string $socketProtocol, DeliverablePackage $packageInstance, string $socketType) {
// Validate parameter
- /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('SOCKET-CONTAINER: socketResource[%s]=%s,socketProtocol=%s,packageInstance[]=%s,socketType=%s - CALLED!', gettype($socketResource), $socketResource, $socketProtocol, gettype($packageInstance), $socketType));
+ /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('SOCKET-CONTAINER: socketResource[%s]=%s,socketProtocol=%s,packageInstance=%s,socketType=%s - CALLED!', gettype($socketResource), $socketResource, $socketProtocol, $packageInstance->__toString(), $socketType));
if (!is_resource($socketResource)) {
// Throw exception
throw new InvalidArgumentException(sprintf('socketResource[]=%s is not valid', $socketResource));
} elseif (empty($socketProtocol)) {
// Throw again
- throw new InvalidArgumentException('socketProtocol is empty');
+ throw new InvalidArgumentException('Parameter "socketProtocol" is empty');
} elseif (empty($socketType)) {
// Throw again
- throw new InvalidArgumentException('socketType is empty');
+ throw new InvalidArgumentException('Parameter "socketType" is empty');
}
// Get a new instance
throw new InvalidArgumentException(sprintf('socketResource[]=%s is not valid', gettype($socketResource)));
} elseif (empty($socketProtocol)) {
// Throw it again
- throw new InvalidArgumentException('socketProtocol is empty');
+ throw new InvalidArgumentException('Parameter "socketProtocol" is empty');
}
// Create package instance
// CFG: TCP-SOCKET-LISTEN-BACKLOG
$cfg->setConfigEntry('tcp_socket_listen_backlog', 1000);
-// CFG: NODE-STATE-CHECKED-PACKAGE-CLASS
-$cfg->setConfigEntry('node_state_checked_package_class', 'NewConnectionNodeState');
-
// CFG: EXTERNAL-ADDRESS
$cfg->setConfigEntry('external_address', '');