lithium\net\HostString::isSocket()
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
booleanSource
public static function isSocket($hostOrSocket) {
return $hostOrSocket[0] === '/';
}