Revision be27f17e
Added by Marc Dequènes about 14 years ago
- ID be27f17e729f333bb133c4e7138e25a2e9ea12f4
bin/mapmaker_client | ||
---|---|---|
if conv
|
||
logger.info "Yo ! Conversation ready with MapMaker (#{conv.peer_name}) !"
|
||
conv.thread("plop") do |conv_thread|
|
||
conv.protocol.send_request_call(conv_thread, "/api_version") do |reply|
|
||
pp reply
|
||
conv_thread.call("/api_version", 2) do |reply|
|
||
case reply[:status]
|
||
when :ok
|
||
puts "Result:"
|
||
pp reply[:result]
|
||
when :decline
|
||
puts "Declined: #{reply[:reason]}"
|
||
when :error
|
||
exception = reply[:exception]
|
||
puts "EXCEPTION: [#{exception.severity} - #{exception.category}] #{exception.message}"
|
||
pp exception.inspect
|
||
else
|
||
puts "???"
|
||
end
|
||
end
|
||
end
|
||
else
|
Also available in: Unified diff
[evol] improve a bit how interface errors are transmitted