Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use gproc to register client pids.

  • Loading branch information...
commit c1a072df3666dff3f586e799eb72eea72ee96d96 1 parent 3cd9a61
@jlouis jlouis authored
Showing with 4 additions and 1 deletion.
  1. +2 −1  rebar.config
  2. +1 −0  src/pony_client.erl
  3. +1 −0  src/pony_core.app.src
View
3  rebar.config
@@ -14,10 +14,11 @@
{deps, [
{lager, ".*", {git, "git://github.com/basho/lager.git", "master"}},
+ {gproc, ".*", {git, "git://github.com/esl/gproc.git", "master"}},
{ranch, ".*", {git, "git://github.com/extend/ranch.git", "master"}}
]}.
-%% {gproc, ".*", {git, "git://github.com/esl/gproc.git", "master"}},
+
%% {lhttpc, ".*", {git, "git://github.com/esl/lhttpc.git", "master"}},
%% {meck, ".*", {git, "git://github.com/klaar/meck.git", "file-bif-passthrough"}},
View
1  src/pony_client.erl
@@ -139,6 +139,7 @@ handle_message(Prefix, Command, Args, #state { nickname = CurNick } = State) ->
{<<>>, nick, [NickName]} ->
case pony_nick_srv:register(NickName) of
ok ->
+ gproc:add_local_name({nick, NickName}),
State#state { nickname = NickName };
nick_in_use ->
send_numeric('ERR_ERRONEUSNICKNAME', [pony:me(), CurNick]),
View
1  src/pony_core.app.src
@@ -10,6 +10,7 @@
syntax_tools,
sasl,
lager,
+ gproc,
ranch
]},
{mod, { pony_core_app, []}},
Please sign in to comment.
Something went wrong with that request. Please try again.