Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # coté serveur
- require 'shortest_path'
- require 'drb'
- DRb.start_service("druby://:7777",Shortest_path::Shortest_path.new("dbname=testdb user=postgres password=postgres host=localhost port=5432"))
- puts "Starting the daemon"
- DRb.thread.join
- # coté client
- require 'drb'
- DRb.start_service # ça me perturbe ça, et en plus ça prend un peu de temps -_-'
- ro = DRbObject.new('druby://:7777')
- ma_route = ro.compute(77881571,77904089)
Add Comment
Please, Sign In to add comment