<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: First Steps with AnyEvent</title>
	<atom:link href="http://curiousprogrammer.wordpress.com/2010/04/18/first-steps-with-anyevent/feed/" rel="self" type="application/rss+xml" />
	<link>http://curiousprogrammer.wordpress.com/2010/04/18/first-steps-with-anyevent/</link>
	<description>Leveraging Perl and Emacs</description>
	<lastBuildDate>Sat, 15 Jun 2013 02:12:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Andres</title>
		<link>http://curiousprogrammer.wordpress.com/2010/04/18/first-steps-with-anyevent/#comment-9257</link>
		<dc:creator><![CDATA[Andres]]></dc:creator>
		<pubDate>Tue, 10 Jul 2012 15:03:04 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=802#comment-9257</guid>
		<description><![CDATA[Sorry guys, my mistake. It does accept multiple connections. Trick is not to overwirte or outscope $headers_io_watcher (as mentioned in the original post).
What I was trying to do was to save the $headers_io_watcher into $self and add a &#039;cleanup&#039; function which goes and undefines each $headers_io_watcher, thus closing the connection to each client before shutting down. So now I have a hash in $self with all the $headers_io_watcher past and present. when a new connection arrives I add the new $headers_io_watcher into the hash and remove any which are undef - i.e. connection closed. At the end when a cleanup function is called, it goes through this hash and undef&#039;s each value.

Still pointers to AnyEvent tutorials are needed. Thanks for the post, it was most useful for me.]]></description>
		<content:encoded><![CDATA[<p>Sorry guys, my mistake. It does accept multiple connections. Trick is not to overwirte or outscope $headers_io_watcher (as mentioned in the original post).<br />
What I was trying to do was to save the $headers_io_watcher into $self and add a &#8216;cleanup&#8217; function which goes and undefines each $headers_io_watcher, thus closing the connection to each client before shutting down. So now I have a hash in $self with all the $headers_io_watcher past and present. when a new connection arrives I add the new $headers_io_watcher into the hash and remove any which are undef &#8211; i.e. connection closed. At the end when a cleanup function is called, it goes through this hash and undef&#8217;s each value.</p>
<p>Still pointers to AnyEvent tutorials are needed. Thanks for the post, it was most useful for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andres</title>
		<link>http://curiousprogrammer.wordpress.com/2010/04/18/first-steps-with-anyevent/#comment-9256</link>
		<dc:creator><![CDATA[Andres]]></dc:creator>
		<pubDate>Tue, 10 Jul 2012 14:38:25 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=802#comment-9256</guid>
		<description><![CDATA[It does not accept multiple connections when I run it. It closes the current connection and then accepts the new one when another client connects to it.
any ideas? or any pointers to tutorials on AnyEvent?]]></description>
		<content:encoded><![CDATA[<p>It does not accept multiple connections when I run it. It closes the current connection and then accepts the new one when another client connects to it.<br />
any ideas? or any pointers to tutorials on AnyEvent?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jared</title>
		<link>http://curiousprogrammer.wordpress.com/2010/04/18/first-steps-with-anyevent/#comment-8928</link>
		<dc:creator><![CDATA[Jared]]></dc:creator>
		<pubDate>Sat, 16 Apr 2011 12:51:49 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=802#comment-8928</guid>
		<description><![CDATA[Hi Bill,

Thanks for that - should be fixed now.

I&#039;ve amended your comment to what I think you had originally as WordPress would have swallowed &lt;sock&gt; thinking it was a tag.  Let me know if it isn&#039;t correct.]]></description>
		<content:encoded><![CDATA[<p>Hi Bill,</p>
<p>Thanks for that &#8211; should be fixed now.</p>
<p>I&#8217;ve amended your comment to what I think you had originally as WordPress would have swallowed &lt;sock&gt; thinking it was a tag.  Let me know if it isn&#8217;t correct.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://curiousprogrammer.wordpress.com/2010/04/18/first-steps-with-anyevent/#comment-8927</link>
		<dc:creator><![CDATA[Bill]]></dc:creator>
		<pubDate>Thu, 14 Apr 2011 21:14:18 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/?p=802#comment-8927</guid>
		<description><![CDATA[Interesting page, thanks for putting it up!  I&#039;m looking at AnyEvent and came across your page, and it was helpful in trying some new things out.

There&#039;s a small bug, however, in watch_socket().  The handle is read like so:

  while (defined(my $line = &lt;sock&gt;)) {

The bareword &#039;sock&#039;, as you have it, is undefined.]]></description>
		<content:encoded><![CDATA[<p>Interesting page, thanks for putting it up!  I&#8217;m looking at AnyEvent and came across your page, and it was helpful in trying some new things out.</p>
<p>There&#8217;s a small bug, however, in watch_socket().  The handle is read like so:</p>
<p>  while (defined(my $line = &lt;sock&gt;)) {</p>
<p>The bareword &#8216;sock&#8217;, as you have it, is undefined.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
