<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Recent Posts in ''irc lite' -- can't seem to get it to work' | Pragmatic Forums</title>
    <link>http://forums.pragprog.com/forums/27/topics/178</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <description></description>
    <item>
      <title>'irc lite' -- can't seem to get it to work posted by Armando Di Cianno @ Tue, 18 Dec 2007 20:35:47 -0000</title>
      <description>&lt;pre&gt;
--- chat_client.erl    2007-10-11 14:47:46.000000000 -0400
+++ chat_client.erl.new    2007-12-18 15:23:02.000000000 -0500
@@ -63,7 +63,7 @@
     {chan, MM, ack} -&amp;gt;
         active(Widget, MM);
     Other -&amp;gt;
-        io:format("chat_client login unexpected:~p~n",[Other]),
+        io:format("chat_client login unexpected:~p~p~n",[Other,MM]),
         wait_login_response(Widget, MM)
     end. 

@@ -74,7 +74,7 @@
      {Widget, Nick, Str} -&amp;gt;
          lib_chan_mm:send(MM, {relay, Nick, Str}),
          active(Widget, MM);
-     {chan, MM, {msg, From, Pid, Str}} -&amp;gt;
+     {chan,MM,{msg,From,Pid,Str}} -&amp;gt;
          insert_str(Widget, [From,"@",pid_to_list(Pid)," ", Str, "\n"]),
          active(Widget, MM);
      {'EXIT',Widget,windowDestroyed} -&amp;gt;
@@ -118,4 +118,4 @@

 skip_to_gt("&amp;gt;" ++ T) -&amp;gt; T;
 skip_to_gt([_|T])    -&amp;gt; skip_to_gt(T);
-skip_to_gt([])       -&amp;gt; exit("no &amp;gt;").
+skip_to_gt([])       -&amp;gt; exit("no &amp;gt;").
\ No newline at end of file
&lt;/pre&gt;</description>
      <pubDate>Tue, 18 Dec 2007 20:35:47 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:27:178:2045</guid>
      <author>Armando Di Cianno</author>
      <link>http://forums.pragprog.com/forums/27/topics/178</link>
    </item>
    <item>
      <title>'irc lite' -- can't seem to get it to work posted by Armando Di Cianno @ Tue, 18 Dec 2007 20:35:05 -0000</title>
      <description>&lt;pre&gt;
--- chat_group.erl    2007-10-11 14:47:46.000000000 -0400
+++ chat_group.erl.new    2007-12-18 15:22:31.000000000 -0500
@@ -16,7 +16,7 @@
     process_flag(trap_exit, true),
     controller(C, self()),
     send(C, ack),
-    self() ! {chan, C, {relay, Nick, "I'm starting the group"}},
+    self() ! {C, {relay, Nick, "I'm starting the group"}},
     group_controller([{C,Nick}]).

@@ -32,14 +32,14 @@
 group_controller(L) -&amp;gt;
     receive
     {chan, C, {relay, Nick, Str}} -&amp;gt;
-        foreach(fun({Pid,_}) -&amp;gt; send(Pid, {msg,Nick,C,Str}) end, L),
+        foreach(fun({Pid,_}) -&amp;gt; send(Pid, {msg, Nick, C, Str}) end, L),
         group_controller(L);
     {login, C, Nick} -&amp;gt;
         controller(C, self()),
         send(C, ack),
         self() ! {chan, C, {relay, Nick, "I'm joining the group"}},
         group_controller([{C,Nick}|L]);
-    {chan_closed, C} -&amp;gt;
+    {chan_closed,C} -&amp;gt;
         {Nick, L1} = delete(C, L, []),
         self() ! {chan, C, {relay, Nick, "I'm leaving the group"}},
         group_controller(L1);
@@ -47,4 +47,3 @@
         io:format("group controller received Msg=~p~n", [Any]),
         group_controller(L)
     end.
-
&lt;/pre&gt;</description>
      <pubDate>Tue, 18 Dec 2007 20:35:05 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:27:178:2044</guid>
      <author>Armando Di Cianno</author>
      <link>http://forums.pragprog.com/forums/27/topics/178</link>
    </item>
    <item>
      <title>'irc lite' -- can't seem to get it to work posted by Armando Di Cianno @ Tue, 18 Dec 2007 20:29:12 -0000</title>
      <description>&lt;p&gt;I found updated chat_group.erl and chat_client.erl here:http://www.erlang.org/pipermail/erlang-questions/2007-August/028358.html&lt;/p&gt;


	&lt;p&gt;Those files seem to fix the issue I was having.&lt;/p&gt;</description>
      <pubDate>Tue, 18 Dec 2007 20:29:12 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:27:178:2043</guid>
      <author>Armando Di Cianno</author>
      <link>http://forums.pragprog.com/forums/27/topics/178</link>
    </item>
    <item>
      <title>'irc lite' -- can't seem to get it to work posted by Armando Di Cianno @ Tue, 18 Dec 2007 18:28:18 -0000</title>
      <description>&lt;p&gt;I&amp;#8217;m using the latest erlang release, &lt;span class="caps"&gt;R12B&lt;/span&gt;, and I can&amp;#8217;t seem to get the irc lite example to work.&lt;/p&gt;


	&lt;p&gt;Using the code from the unpacked tarball, here&amp;#8217;s my output from make chat_server:&lt;br /&gt;&lt;del&gt;-&lt;/del&gt;&lt;br /&gt;lib_chan starting:&amp;#8221;chat.conf&amp;#8221; &lt;br /&gt;ConfigData=[{port,2223},
            {service,chat,password,&amp;#8221;AsDT67aQ&amp;#8221;,mfa,mod_chat_controller,
                     start,[]}]&lt;br /&gt;Eshell V5.6  (abort with ^G)&lt;br /&gt;&lt;pre&gt;
1&amp;gt; mod_chat_controller off we go ...&amp;lt;0.35.0&amp;gt;
mod_chat_controller off we go ...&amp;lt;0.41.0&amp;gt;
mod_chat_controller off we go ...&amp;lt;0.42.0&amp;gt;
mod_chat_controller off we go ...&amp;lt;0.45.0&amp;gt;
&lt;/pre&gt;&lt;/p&gt;


	&lt;p&gt;And here&amp;#8217;s the output from make chat_client:&lt;br /&gt;&lt;pre&gt;
1&amp;gt; chat_client login unexpected:{'EXIT',&amp;lt;0.49.0&amp;gt;,connectorFinished}
lib_chan_mm: protocol error:{login,"general","jim"}
chat_client login unexpected:{'EXIT',&amp;lt;0.47.0&amp;gt;,connectorFinished}
lib_chan_mm: protocol error:{login,"general","sue"}
chat_client login unexpected:{'EXIT',&amp;lt;0.45.0&amp;gt;,connectorFinished}
lib_chan_mm: protocol error:{login,"general","jane"}
chat_client login unexpected:{'EXIT',&amp;lt;0.43.0&amp;gt;,connectorFinished}
lib_chan_mm: protocol error:{login,"general","joe"}
&lt;/pre&gt;&lt;/p&gt;


	&lt;p&gt;Each of the windows has it&amp;#8217;s title set to the login accounts&amp;#8217;s name and the text &amp;#8220;connected to server sending data&amp;#8221; is visible.&lt;/p&gt;


	&lt;p&gt;Any text sent generates the following output in the chat_client terminal:&lt;br /&gt;&lt;pre&gt;
chat_client login unexpected:{&amp;lt;0.44.0&amp;gt;,"jane"," asdf"}
&lt;/pre&gt;&lt;/p&gt;


	&lt;p&gt;There&amp;#8217;s a chance I&amp;#8217;m simply missing how to use the &amp;#8216;irc&amp;#8217; client, but something seems amiss.  Any suggestions?&lt;/p&gt;</description>
      <pubDate>Tue, 18 Dec 2007 18:28:18 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:27:178:2042</guid>
      <author>Armando Di Cianno</author>
      <link>http://forums.pragprog.com/forums/27/topics/178</link>
    </item>
  </channel>
</rss>
