for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Health\Checks\Network;
use Health\Checks\HealthCheckInterface;
use Health\Checks\BaseCheck;
use Health\Checks\Traits\SocketTrait;
class Tcp6 extends BaseCheck implements HealthCheckInterface
{
use SocketTrait;
/**
*
* {@inheritdoc}
* @see \Health\Checks\HealthCheckInterface::call()
*/
public function call()
$builder = $this->getBuilder();
$address = $this->getParam('address', '');
$this->create(AF_INET6, SOCK_STREAM, SOL_TCP);
if (! $this->connect($address)) {
$builder->down()->withData('error', $this->getError());
}
$this->close();
return $builder->build();