<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: IM Integration With XMPP4r : Part 2</title>
	<atom:link href="http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/</link>
	<description>Because programming should be fun</description>
	<lastBuildDate>Fri, 10 Sep 2010 17:40:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Drew</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/comment-page-1/#comment-946</link>
		<dc:creator>Drew</dc:creator>
		<pubDate>Sun, 11 Apr 2010 05:54:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-946</guid>
		<description>The Client class does not have the add_update callback.</description>
		<content:encoded><![CDATA[<p>The Client class does not have the add_update callback.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Art</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/comment-page-1/#comment-850</link>
		<dc:creator>Art</dc:creator>
		<pubDate>Mon, 06 Jul 2009 03:07:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-850</guid>
		<description>Presence seems to be mostly empty when getting a roster.  Any ideas on how to get all the presence with the roster call?</description>
		<content:encoded><![CDATA[<p>Presence seems to be mostly empty when getting a roster.  Any ideas on how to get all the presence with the roster call?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ryan</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/comment-page-1/#comment-849</link>
		<dc:creator>ryan</dc:creator>
		<pubDate>Sun, 05 Jul 2009 17:49:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-849</guid>
		<description>how do you send messages to the jabber chatroom using xmpp4r</description>
		<content:encoded><![CDATA[<p>how do you send messages to the jabber chatroom using xmpp4r</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ruby beginner</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/comment-page-1/#comment-845</link>
		<dc:creator>ruby beginner</dc:creator>
		<pubDate>Tue, 16 Jun 2009 07:30:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-845</guid>
		<description>So how would one change the port on which this example connects on ie for communications with a TCP proxy or socks proxy.(-L or -D options in openssh) or say port 9050 for operation as a tor hidden server with OTR support added by otr-proxy www.cypherpunks.ca/otr/</description>
		<content:encoded><![CDATA[<p>So how would one change the port on which this example connects on ie for communications with a TCP proxy or socks proxy.(-L or -D options in openssh) or say port 9050 for operation as a tor hidden server with OTR support added by otr-proxy <a href="http://www.cypherpunks.ca/otr/" rel="nofollow">http://www.cypherpunks.ca/otr/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: worldround</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/comment-page-1/#comment-837</link>
		<dc:creator>worldround</dc:creator>
		<pubDate>Fri, 03 Apr 2009 23:51:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-837</guid>
		<description>Thanks for the interesting and informative site. That’s definitely what I’ve been looking for.</description>
		<content:encoded><![CDATA[<p>Thanks for the interesting and informative site. That’s definitely what I’ve been looking for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bishkekblog</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/comment-page-1/#comment-836</link>
		<dc:creator>bishkekblog</dc:creator>
		<pubDate>Fri, 03 Apr 2009 14:36:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-836</guid>
		<description>Thanks for the useful site.Keep up the good work.God bless you and keep you.</description>
		<content:encoded><![CDATA[<p>Thanks for the useful site.Keep up the good work.God bless you and keep you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hooopo</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/comment-page-1/#comment-831</link>
		<dc:creator>Hooopo</dc:creator>
		<pubDate>Thu, 26 Feb 2009 08:41:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-831</guid>
		<description>Thanks,it&#039;s so powerful!</description>
		<content:encoded><![CDATA[<p>Thanks,it&#8217;s so powerful!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vinibaggio &#187; Distributed Ruby (DRb) + XMPP4R</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/comment-page-1/#comment-792</link>
		<dc:creator>vinibaggio &#187; Distributed Ruby (DRb) + XMPP4R</dc:creator>
		<pubDate>Sat, 15 Nov 2008 16:35:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-792</guid>
		<description>[...] isso recomendo algumas leituras prévias sobre XMPP4R (a documentação oficial, este tutorial, e sua segunda parte) e de Rails (recomendo os tutoriais e screencasts do Fábio Akita, no seu blog, o AkitaOnRails). [...]</description>
		<content:encoded><![CDATA[<p>[...] isso recomendo algumas leituras prévias sobre XMPP4R (a documentação oficial, este tutorial, e sua segunda parte) e de Rails (recomendo os tutoriais e screencasts do Fábio Akita, no seu blog, o AkitaOnRails). [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/comment-page-1/#comment-719</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Tue, 21 Oct 2008 20:40:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-719</guid>
		<description>Nilu, 

I&#039;m sure you have your answer already, but let me explain the &quot;running in their own thread&quot; thing :

The callbacks are invoked in the context of the &quot;parser thread&quot; which is the one doing the actual &quot;listening&quot; of the the XML stream. When something happens in the parser thread (e.g. message stanza received), callbacks are invoked from there. So the code you have in your various callbacks are effectively executed in another thread context.

Like Leonardo wrote, you have to write Thread.stop in your main thread when you have set all your callbacks and other initialization stuff.

It might sound confusing, but you have to write Thread.stop to keep the current thread alive. Thread.stop simply put the current thread into sleep mode and leave all the scheduling time to the other threads (the parser thread in our case). If you don&#039;t write Thread.stop, everything ends when the main thread has nothing left to do.

I have updated the original post.</description>
		<content:encoded><![CDATA[<p>Nilu, </p>
<p>I&#8217;m sure you have your answer already, but let me explain the &#8220;running in their own thread&#8221; thing :</p>
<p>The callbacks are invoked in the context of the &#8220;parser thread&#8221; which is the one doing the actual &#8220;listening&#8221; of the the XML stream. When something happens in the parser thread (e.g. message stanza received), callbacks are invoked from there. So the code you have in your various callbacks are effectively executed in another thread context.</p>
<p>Like Leonardo wrote, you have to write Thread.stop in your main thread when you have set all your callbacks and other initialization stuff.</p>
<p>It might sound confusing, but you have to write Thread.stop to keep the current thread alive. Thread.stop simply put the current thread into sleep mode and leave all the scheduling time to the other threads (the parser thread in our case). If you don&#8217;t write Thread.stop, everything ends when the main thread has nothing left to do.</p>
<p>I have updated the original post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nakyss</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/comment-page-1/#comment-640</link>
		<dc:creator>Nakyss</dc:creator>
		<pubDate>Sun, 03 Aug 2008 20:57:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-640</guid>
		<description>Thanks for this article, this is so nice to read some good documentation about xmpp4r.

However, there are some little mistakes that i wanted to point out here.
Well I pasted the codes right from the web site and here was the persisting error that kept coming at me when trying to execute the script:

       Jabber_test_ruby.rb:81: syntax error, unexpected &#039;}&#039;, expecting kEND
       Jabber_test_ruby.rb:92: syntax error, unexpected $end, expecting kEND
           Tk.mainloop
                     ^
it&#039;s just because you forget to write the &quot;end&quot;s closing block of the callback methods(not all of them).

Anyway keep up the good work, I&#039;ll come back here.</description>
		<content:encoded><![CDATA[<p>Thanks for this article, this is so nice to read some good documentation about xmpp4r.</p>
<p>However, there are some little mistakes that i wanted to point out here.<br />
Well I pasted the codes right from the web site and here was the persisting error that kept coming at me when trying to execute the script:</p>
<p>       Jabber_test_ruby.rb:81: syntax error, unexpected &#8216;}&#8217;, expecting kEND<br />
       Jabber_test_ruby.rb:92: syntax error, unexpected $end, expecting kEND<br />
           Tk.mainloop<br />
                     ^<br />
it&#8217;s just because you forget to write the &#8220;end&#8221;s closing block of the callback methods(not all of them).</p>
<p>Anyway keep up the good work, I&#8217;ll come back here.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
