<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MagicalTux in Japan &#187; PInetd Transports</title>
	<atom:link href="http://blog.magicaltux.net/tag/pinetd-transports/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.magicaltux.net</link>
	<description>Geekness brought me to Japan!</description>
	<lastBuildDate>Mon, 26 Jul 2010 21:31:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>PInetd2: Next feature to come</title>
		<link>http://blog.magicaltux.net/2009/09/10/pinetd2-next-feature-to-come/</link>
		<comments>http://blog.magicaltux.net/2009/09/10/pinetd2-next-feature-to-come/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 05:56:38 +0000</pubDate>
		<dc:creator>MagicalTux</dc:creator>
				<category><![CDATA[Geek Attitude]]></category>
		<category><![CDATA[NetBatch]]></category>
		<category><![CDATA[PInetd]]></category>
		<category><![CDATA[PInetd Transports]]></category>
		<category><![CDATA[pinetd2]]></category>

		<guid isPermaLink="false">http://blog.magicaltux.net/?p=358</guid>
		<description><![CDATA[As you maybe know, PInetd2 is my new internet daemon framework, totally rewrote to be more stable, make use of PHP5.3&#8242;s namespaces, etc&#8230; I was planning to release PInetd2 as soon as PHP 5.3 gets stable (which will maybe be the case with 5.3.1 ?), until it happens I&#8217;m adding new features and fixing bugs. [...]]]></description>
			<content:encoded><![CDATA[<p>As you maybe know, PInetd2 is my new internet daemon framework, totally rewrote to be more stable, make use of PHP5.3&#8242;s namespaces, etc&#8230;</p>
<p>I was planning to release PInetd2 as soon as PHP 5.3 gets stable (which will maybe be the case with 5.3.1 ?), until it happens I&#8217;m adding new features and fixing bugs.</p>
<p>I&#8217;ll start with something I already coded (NetBatch) before introducing the new feature I&#8217;m working on (Transports).</p>
<h2><span id="more-358"></span>NetBatch</h2>
<p>NetBatch is a new daemon allowing to run applications on a local or remote server. It has many possible uses, since it even allows running stuff as root, or run stuff in background.</p>
<p>With NetBatch, reloading apache&#8217;s configuration, restarting a server, etc&#8230; from an apache process is no longer a dream. You can just connect to whatever server you want, and run the stuff. NetBatch is running in async mode, meaning you can even run interactive applications and provide input when you feed the need to.</p>
<p>NetBatch also has a different operation mode, named &#8220;Persistent&#8221;. It allows you to run a (potentially long) operation, and connect later to get the result. You have to poll the application (or NetBatch will kill it), and you can control it like a normal application. The only difference is when you disconnect/reconnect, the application is still there.</p>
<h2>Transports</h2>
<p>Transports is a new feature allowing implementation of read/write resources. The two first transports I&#8217;ll implement are IRC and RSS. Both will provide some kinds of resources (irc_channel, irc_user, rss_feed) and the ability to read objects/write objects on those.<br />
rss_feed will be a read-only resource providing rss feed polling. irc_channel will be a read/write resource allowing to control a generic bot on (a) given channel(s). irc_user will provide full control over the bot, private messages, etc (and will cause a dedicated connection).</p>
<p>Other transports are also planned, including but not limited to jabber, twitter, msn, etc&#8230; (anything that can emit or receive &#8220;events&#8221;).</p>
<p>Configuring a transport is done via an XML node. Each transport will have its own settings (for example &#8220;refreshTime&#8221; for rss_feed), and will have a &#8220;connected state&#8221;. When a transport is &#8220;connected&#8221;, it may have a separate process launched handling the connection.</p>
<p>Transports are handled using pinetd2&#8242;s internal IPC system, however they don&#8217;t require polling to work. Once connected, incoming data will be sent directly from the transport, as soon as it is made available.</p>
<p>The goal is of course to allow creation of various things with pinetd: bots, notifications, etc</p>
<h2>Future</h2>
<p>One of the biggest missing features in pinetd2 is an administration interface. A way to view logs, start/stop daemons, edit configuration, etc&#8230; I&#8217;m planning to do this using pinetd2&#8242;s HTTP daemon, and started up to some extent, but haven&#8217;t found anyone to help me by working on the HTML interface (I&#8217;m really bad with HTML).<br />
Once pinetd2 gets an administration interface, I&#8217;ll be able to go through the documentation process before starting a release cycle (RC, then release) to finally get a stable release of pinetd2.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.magicaltux.net/2009/09/10/pinetd2-next-feature-to-come/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
