Project

General

Profile

« Previous | Next » 

Revision 45333094

Added by Marc Dequènes over 13 years ago

  • ID 4533309490bb30fb5b2827d0f1140afa339799bf

[fix/evol] conversation/bot protocol rework §8 (refs #30)

View differences:

lib/cyborghood/cyborg/botnet.rb
end
module BotNetClientUNIXSocket
def identifier_prefix
"unix_socket"
end
def peer_socket(peer)
File.join(Config::RUN_DIR, peer.downcase + ".sock")
end
......
block.call @comm_list[peer]
else
begin
EventMachine.connect_unix_domain(peer_socket(peer), Conversation, self, &block)
EventMachine.connect_unix_domain(peer_socket(peer), Conversation, self, block)
rescue
block.call false
end

Also available in: Unified diff