daily pastebin goal
92%
SHARE
TWEET

Untitled

a guest Mar 17th, 2018 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # coté serveur
  2.  
  3. require 'shortest_path'
  4. require 'drb'
  5.  
  6. DRb.start_service("druby://:7777",Shortest_path::Shortest_path.new("dbname=testdb user=postgres password=postgres host=localhost port=5432"))
  7.  
  8. puts "Starting the daemon"
  9.  
  10. DRb.thread.join
  11.  
  12.  
  13. # coté client
  14. require 'drb'
  15. DRb.start_service # ça me perturbe ça, et en plus ça prend un peu de temps -_-'
  16. ro = DRbObject.new('druby://:7777')
  17. ma_route = ro.compute(77881571,77904089)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand