CloudI\API::send_sync PHP Method

send_sync() public method

public send_sync ( $name, $request, $timeout = null, $request_info = null, $priority = null )
    public function send_sync($name, $request, $timeout = null, $request_info = null, $priority = null)
    {
        if (is_null($timeout)) {
            $timeout = $this->timeout_sync;
        }
        if (is_null($request_info)) {
            $request_info = '';
        }
        if (is_null($priority)) {
            $priority = $this->priority_default;
        }
        $this->send(\Erlang\term_to_binary(array(new \Erlang\OtpErlangAtom('send_sync'), $name, new \Erlang\OtpErlangBinary($request_info), new \Erlang\OtpErlangBinary($request), $timeout, $priority)));
        return $this->poll_request(null, false);
    }