You are here

protected function SocketHandler::fsockopen in Lagoon Logs 8

Wrapper to allow mocking

1 call to SocketHandler::fsockopen()
SocketHandler::createSocketResource in src/Logger/SocketHandler.php

File

src/Logger/SocketHandler.php, line 235

Class

SocketHandler
Stores to any socket - uses fsockopen() or pfsockopen().

Namespace

Drupal\lagoon_logs\Logger

Code

protected function fsockopen() {
  return @fsockopen($this->connectionString, -1, $this->errno, $this->errstr, $this->connectionTimeout);
}