public function connectUnix($path)
    {
        $this->type = 'unix';

        if (!$this->bevConnectEnabled) {
            $fd = socket_create(AF_UNIX, SOCK_STREAM, 0);
            if (!$fd) {
                return false;
            }
            socket_set_nonblock($fd);
            @socket_connect($fd, $path, 0);
            $this->setFd($fd);
            return true;
        }
        $this->bevConnect = true;
        $this->addr = 'unix:' . $path;
        $this->setFd(null);
        return true;
    }
public function connectUnix($path)
    {
        $this->type = 'unix';

        if (!$this->bevConnectEnabled) {
            $fd = socket_create(AF_UNIX, SOCK_STREAM, 0);
            if (!$fd) {
                return false;
            }
            socket_set_nonblock($fd);
            @socket_connect($fd, $path, 0);
            $this->setFd($fd);
            return true;
        }
        $this->bevConnect = true;
        $this->addr = 'unix:' . $path;
        $this->setFd(null);
        return true;
    }
public function connectUnix ( $ path ) { $ this -> type = 'unix' ; if ( ! $ this -> bevConnectEnabled ) { $ fd = socket_create ( AF_UNIX , SOCK_STREAM , 0 ) ; if ( ! $ fd ) { return false ; } socket_set_nonblock ( $ fd ) ; @ socket_connect ( $ fd , $ path , 0 ) ; $ this -> setFd ( $ fd ) ; return true ; } $ this -> bevConnect = true ; $ this -> addr = 'unix:' . $ path ; $ this -> setFd ( null ) ; return true ; }
Establish UNIX socket connection
@param  string $path Path
@return boolean       Success
Establish UNIX socket connection