Guest User

Untitled

a guest
Mar 17th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  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)
Add Comment
Please, Sign In to add comment