# File lib/messenger/messenger.rb, line 418
    def work(timeout=-1)
      err = Cproton.pn_messenger_work(@impl, timeout)
      if (err == Cproton::PN_TIMEOUT) then
        return false
      else
        check_for_error(err)
        return true
      end
    end