anchor.diff:  -module(ppspp_channel).
   -include("swirl.hrl").
   
  --ifdef(TEST).
  --include_lib("eunit/include/eunit.hrl").
  --endif.
  +-define(MAX_FREE_CHANNEL_TRIES, 30).
   
   %% api
   -export([unpack_channel/1,
  
positive.code: %% @end
  -spec get_swarm_id(channel()) ->
      {ok, ppspp_options:swarm_id() } | {error, any()}.
  get_swarm_id(Channel = {channel, _}) ->
      try gproc:lookup_value({n,l,Channel}) of
          Swarm_id -> {ok, Swarm_id}
      catch
          _ ->
  
negative.code:          get_channel/1,
           get_swarm_id/1]).
  
  -opaque channel() :: 0..16#ffffffff.
  -export_type([channel/0]).
  
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %% api
  