This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
erlang /
| name | age | message | |
|---|---|---|---|
| |
LICENSE | Sun Sep 13 23:28:19 -0700 2009 | |
| |
README | Sun Sep 13 23:28:19 -0700 2009 | |
| |
Rakefile | Wed Sep 23 07:44:50 -0700 2009 | |
| |
doc/ | Sun Sep 13 23:28:19 -0700 2009 | |
| |
example.rb | Wed Sep 23 13:24:10 -0700 2009 | |
| |
init.rb | Sun Sep 13 23:28:19 -0700 2009 | |
| |
lib/ | Thu Sep 24 01:06:48 -0700 2009 | |
| |
test/ | Wed Sep 23 07:47:45 -0700 2009 |
README
Erlang is a bridge from Ruby to Erlang, build over EventMachine.
Native erl_interface lib doesn't fit for event-based usage, it blocks whole
application and is not suitable for modern applications.
Erlang distributed protocol is rather simple, so its base is implemented in this library,
except distributed caches.
However, most problems lies in the application level. Based on data transfer protocol,
simple as the erlang itself, lies application protocol, which is rather hard to implement and
not very useful.
Examples:
EventMachine.run do
Erlang::Server.run do |creation|
Erlang.register_process(:rtmp, Processes::RtmpListener.new) # The same as register process in erlang
Erlang.creation = creation
puts "Epmd registered us: #{Erlang.creation}"
Erlang::Epmd.nodes do |nodes|
puts nodes
end
end
# Erlang::Client.connect("localhost", "rtmpproxy") do |client|
# client.rpc(:io, :format, "Hello world") do |result|
# puts "Result: #{result.inspect}"
# end
# end
end
Erlang protocol description lies in doc






