lithium\net\HostString::isSocket()

public static method

Checks if a given string is a path to a Unix socket.

Based on the assumption that Unix sockets are not available on Windows, this check is radically simplified.

Parameters

  • string $hostOrSocket

    String containing either host name/port or an absolute path to a socket.

Returns

boolean

Source

	public static function isSocket($hostOrSocket) {
		return $hostOrSocket[0] === '/';
	}