skunkwerks / swirl

[alpha] IETF PPSP RFC7574 in Erlang/OTP -- an incomplete non-functional partial implementation
http://www.swirl-project.org/
Apache License 2.0
175 stars 13 forks source link

add swarm manager #27

Closed dch closed 9 years ago

dch commented 9 years ago

I pulled last 3 items from #22 into own ticket.

I'm assuming this will be another gen_server + supervisor.

api

-spec swarm:find_swarm_worker(ppspp_options:root_hash()) ->
   swarm_worker:worker_id().
-spec swarm:find_swarm_worker(ppspp_channel:channel()) ->
   swarm_worker:worker_id().
-spec swarm:get_swarm_options(ppspp_channel:channel()) ->
    ppspp_options:options().
-spec swarm:get_swarm_options(ppspp_options:root_hash()) ->
    ppspp_options:options().

notes

dch commented 9 years ago

implemented most of these directly in swarm_worker for the moment, except channel->swarm_id which is in channel, because it makes more sense wrt types.