Project

General

Profile

« Previous | Next » 

Revision 258a439a

Added by Marc Dequènes about 13 years ago

  • ID 258a439a59e2be7ce7dcb2e68acf3b744e01f91f

[evol] Botnet: propagate API calls environment (user token and language prefs at the moment), propagate session a bit further too in order to implement a more dynamic API tree

View differences:

lib/cyborghood/cyborg/botnet/conversation.rb
require 'cyborghood/cyborg/botnet/session'
require 'cyborghood/cyborg/botnet/protocol'
require 'set'
require 'thread'
module CyborgHood
......
end
# convenience method
def call(*args, &callback)
@conversation.protocol.send_request_call(self, *args, &callback)
def call(env, node, *args, &callback)
@conversation.protocol.send_request_call(self, env, node, *args, &callback)
end
# convenience method
def exists?(node, &callback)
@conversation.protocol.send_request_exists(self, node, &callback)
def exists?(env, node, &callback)
@conversation.protocol.send_request_exists(self, env, node, &callback)
end
# convenience method

Also available in: Unified diff