<?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>Ashish's Tech Blog &#187; Network Programming</title>
	<atom:link href="http://www.ashishpaliwal.com/blog/category/application-programming/network-programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ashishpaliwal.com/blog</link>
	<description>From Programmer, For Programmers</description>
	<lastBuildDate>Tue, 17 Aug 2010 12:04:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Implementing Trap Sender using SNMP4J</title>
		<link>http://www.ashishpaliwal.com/blog/2008/10/implementing-trap-sender-using-snmp4j/</link>
		<comments>http://www.ashishpaliwal.com/blog/2008/10/implementing-trap-sender-using-snmp4j/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 06:56:06 +0000</pubDate>
		<dc:creator>ashish</dc:creator>
				<category><![CDATA[Application Programming]]></category>
		<category><![CDATA[Network Programming]]></category>
		<category><![CDATA[Apache MINA]]></category>
		<category><![CDATA[SMP]]></category>
		<category><![CDATA[SNMP4J]]></category>
		<category><![CDATA[Trap Sender]]></category>

		<guid isPermaLink="false">http://www.ashishpaliwal.com/blog/?p=176</guid>
		<description><![CDATA[In this post, we shall implement a Trap Sender using SNMP4J. We may choose to use Apache MINA for sending Traps or can resort to using DatagramSocket class directly. This shall be the logical flow of the implementation Get the encoded Trap Data Send the Trap  Lets look at the first component, on getting the [...]]]></description>
			<content:encoded><![CDATA[<p>In this post, we shall implement a Trap Sender using SNMP4J. We may choose to use Apache MINA for sending Traps or can resort to using DatagramSocket class directly.</p>
<p>This shall be the logical flow of the implementation</p>
<ul>
<li>Get the encoded Trap Data</li>
<li>Send the Trap </li>
</ul>
<div>Lets look at the first component, on getting the encoded Trap data</div>
<p> </p>
<div><a href="http://www.ashishpaliwal.com/blog/wp-content/uploads/2008/10/trapdata.png"><img class="aligncenter size-full wp-image-178" title="trapdata" src="http://www.ashishpaliwal.com/blog/wp-content/uploads/2008/10/trapdata.png" alt="" width="500" height="224" /></a></div>
<p>The code snippet above shows a simple way of creating and encoding a Trap PDU. Essentially, we create an instance of PDU class and sets the type as Trap. This is important, else SNMP4J shall throw an exception. Thereafter, we can set the trap parameters. Here, we have hardcoded the parameters, there can be custom implementations that can take these from config files or from UI. After setting the parameters, we just call the encode function passing the Output stream and collect the byte array to be sent.</p>
<div>Sending part is even simpler     </p>
<div><a href="http://www.ashishpaliwal.com/blog/wp-content/uploads/2008/10/sendtrap.png"><img class="aligncenter size-full wp-image-179" title="sendtrap" src="http://www.ashishpaliwal.com/blog/wp-content/uploads/2008/10/sendtrap.png" alt="" width="500" height="83" /></a></div>
<p><script type="text/javascript"><!--
google_ad_client = "pub-6961884887741817";
/* 468x15LinkUnit */
google_ad_slot = "4400881690";
google_ad_width = 468;
google_ad_height = 15;
// --></script><br />
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script></p>
<p>The send code is preety straight forward. Here we have used Datagram Socket, we can use Apache MINA UDP Client implementation to send the trap as well.</p>
<div>References</div>
<div>
<ul>
<li><a href="http://www.snmp4j.org/">http://www.snmp4j.org/</a></li>
<li><a href="http://www.ashishpaliwal.com/blog/2008/10/implementing-udp-client-using-apache-mina/">Implementing UDP Client using Apache MINA</a> </li>
</ul>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.ashishpaliwal.com/blog/2008/10/implementing-trap-sender-using-snmp4j/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Implementing Trap Receiver in 30 minutes using Apache MINA</title>
		<link>http://www.ashishpaliwal.com/blog/2008/10/implementing-trap-receiver-in-30-minutes-using-apache-mina/</link>
		<comments>http://www.ashishpaliwal.com/blog/2008/10/implementing-trap-receiver-in-30-minutes-using-apache-mina/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 10:24:26 +0000</pubDate>
		<dc:creator>ashish</dc:creator>
				<category><![CDATA[Apache MINA]]></category>
		<category><![CDATA[Network Programming]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Trap Receiver]]></category>

		<guid isPermaLink="false">http://www.ashishpaliwal.com/blog/?p=157</guid>
		<description><![CDATA[Will continues to post articles about MINA, to be updated,  Subscribe in a reader Yes, we are going to implement a SNMP trap receiver in less than 30 minutes. If you have been following my post on Apache MINA, this would be a natural extension to it. In this article, we shall bring together all [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-6961884887741817";
/* 468x15LinkUnit */
google_ad_slot = "4400881690";
google_ad_width = 468;
google_ad_height = 15;
// --></script><br />
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script></p>
<p>Will continues to post articles about MINA, to be updated, <a rel="alternate" type="application/rss+xml" href="http://feedproxy.google.com/AshishsTechBlog"><img style="vertical-align:middle;border:0" src="http://www.feedburner.com/fb/images/pub/feed-icon16x16.png" alt="" /></a> <a rel="alternate" type="application/rss+xml" href="http://feedproxy.google.com/AshishsTechBlog">Subscribe in a reader</a></p>
<p>Yes, we are going to implement a SNMP trap receiver in less than 30 minutes. If you have been following my post on Apache MINA, this would be a natural extension to it. In this article, we shall bring together all our components to build the system.</p>
<p> <strong>Pre-requisites:</strong></p>
<p><strong> <span style="font-weight: normal;">Please read through these articles. You can find all these posts on <a href="http://www.ashishpaliwal.com/blog/apache-mina/">Apache MINA</a></span></strong></p>
<ul type="disc">
<li>What is Apache MINA</li>
<li>Apache MINA based Server Application Architecture</li>
<li>Implementing UDP Server using Apache MINA</li>
<li>Implementing SNMP4J Decoder for Apache MINA</li>
</ul>
<p> To execute the code, you need following jars</p>
<ul type="disc">
<li>mina-core-2.0.0-M1.jar</li>
<li>slf4j-api-1.5.0.jar</li>
<li>slf4j-log4j12-1.5.0.jar</li>
<li>log4j-1.2.15.jar</li>
<li>SNMP4J.jar</li>
</ul>
<p> I am assuming that you have read my previous posts and jumping straight to the implementations. The high level architecture is explained in the post Apache MINA based Server Application Architecture</p>
<p><strong>Architecture</strong> </p>
<p><a href="http://www.ashishpaliwal.com/blog/wp-content/uploads/2008/10/traprcvrarchitecture1.png"><img class="aligncenter size-full wp-image-164" title="traprcvrarchitecture1" src="http://www.ashishpaliwal.com/blog/wp-content/uploads/2008/10/traprcvrarchitecture1.png" alt="" width="500" height="238" /></a></p>
<p>Let’s understand the flow here and see what all we need to do to process a trap</p>
<ul type="disc">
<li class="MsoNormal">Receive      the trap over UDP</li>
<li class="MsoNormal">Decode      the Trap</li>
<li class="MsoNormal">Dump      the Trap</li>
</ul>
<p>Lets see how each of the these maps to the code we have already written</p>
<p><a style="text-decoration: none;" href="http://www.ashishpaliwal.com/blog/wp-content/uploads/2008/10/traprcvrcomponents1.png"><span style="color: #000000;"><br />
 </span><img class="aligncenter size-full wp-image-160" style="text-decoration: underline;" title="traprcvrcomponents1" src="http://www.ashishpaliwal.com/blog/wp-content/uploads/2008/10/traprcvrcomponents1.png" alt="" width="500" height="248" /></a></p>
<p>It's a now simple to understand that we have reused all the components to create the Server. Let me not write too much, and jump straight to the code <span><span>J</span></span></p>
<p><strong> The Server Code</strong></p>
<p><a href="http://www.ashishpaliwal.com/blog/wp-content/uploads/2008/10/trapserver.png"><img class="aligncenter size-full wp-image-161" title="trapserver" src="http://www.ashishpaliwal.com/blog/wp-content/uploads/2008/10/trapserver.png" alt="" width="500" height="339" /></a></p>
<p>The only change that we did to the UDP Server code was to add a Protocol Codec. At line 36, we added our custom ProtocolCodecFiler. The SNMPCodecFactory return the instance of our SNMP4J codec. There is not much code and this construct is fairly simple, and explained very well in MINA’s documentation. From the main method, we just need to call the method initialize() and our trap receiver starts.</p>
<p> </p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-6961884887741817";
/* 468x15LinkUnit */
google_ad_slot = "4400881690";
google_ad_width = 468;
google_ad_height = 15;
// --></script><br />
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script><br />
 <strong>References</strong></p>
<ul type="disc">
<li><a href="http://mina.apache.org/">http://mina.apache.org/</a></li>
<li><a href="http://www.snmp4j.org/">http://www.snmp4j.org/</a></li>
</ul>
<p><script type="text/javascript"><!--
google_ad_client = "pub-6961884887741817";
/* 468x60ImageOnly */
google_ad_slot = "0221726572";
google_ad_width = 468;
google_ad_height = 60;
// --></script><br />
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ashishpaliwal.com/blog/2008/10/implementing-trap-receiver-in-30-minutes-using-apache-mina/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Implementing UDP Server using Apache MINA</title>
		<link>http://www.ashishpaliwal.com/blog/2008/10/implementing-udp-server-using-apache-mina/</link>
		<comments>http://www.ashishpaliwal.com/blog/2008/10/implementing-udp-server-using-apache-mina/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 07:07:28 +0000</pubDate>
		<dc:creator>ashish</dc:creator>
				<category><![CDATA[Network Programming]]></category>
		<category><![CDATA[Apache MINA]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[UDP]]></category>

		<guid isPermaLink="false">http://www.ashishpaliwal.com/blog/?p=151</guid>
		<description><![CDATA[In my last post we created a UDP client using Apache MINA. Lets turn the table and implement the Server side. Let's see how using Apache MINA reduces the effort to create a UDP Server. Steps to create a UDP Server using java.net API's Create a Socket and listen for incoming connection Process each packet [...]]]></description>
			<content:encoded><![CDATA[<p>In my last post we created a UDP client using Apache MINA. Lets turn the table and implement the Server side. Let's see how using Apache MINA reduces the effort to create a UDP Server.</p>
<p>Steps to create a UDP Server using java.net API's</p>
<ol>
<li>Create a Socket and listen for incoming connection</li>
<li>Process each packet in a separate thread <img src='http://www.ashishpaliwal.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  (I hate this, unfortunately need this to have high processing rate)</li>
<li>Parse and process the request and optionally send response (Lets omit this to keep things simple)</li>
</ol>
<div>Lets see how to achieve the same using Apache MINA</div>
<div>
<ol>
<li>Create a NioDatagramAcceptor</li>
<li>Add an IoHandler</li>
<li>Bind and make application ready to receive</li>
</ol>
</div>
<div>That's it <img src='http://www.ashishpaliwal.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </div>
<div>Before we dive into the code, lets see some assumption made to run this</div>
<div>
<ul>
<li>Our protocol is carrying Strings in UDP packet</li>
<li>We shall not do any transformation on the packets received. We shall just dump the content</li>
</ul>
<div><strong>The Handler</strong></div>
<p> </p>
<div><a href="http://www.ashishpaliwal.com/blog/wp-content/uploads/2008/10/udpsrvhandler.png"><img class="aligncenter size-full wp-image-142" title="udpsrvhandler" src="http://www.ashishpaliwal.com/blog/wp-content/uploads/2008/10/udpsrvhandler.png" alt="" width="500" height="192" /></a></div>
<p><script type="text/javascript"><!--
google_ad_client = "pub-6961884887741817";
/* 468x15LinkUnit */
google_ad_slot = "4400881690";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>The Handler is in its basic form. Our only method of interest is messageReceived. Since we know that we are getting "String" message without any transformation, we could easily create a new string from the bytes received. A wonderful thing to note about this API is the parameter "<em>message</em>". This makes the API generic enough to cater to any kind of objects. If we had used a ProtocolCodec in the chain and had transformed the byte[] into a custom Object, we would have type-casted <em>message </em>to that object.</p>
<div>That's all in the handler.</div>
<p> </p>
<div><strong>The Server</strong></div>
<div>Lets see the main Server code</div>
<p> </p>
<div><a href="http://www.ashishpaliwal.com/blog/wp-content/uploads/2008/10/minaudpsrv.png"><img class="aligncenter size-full wp-image-143" title="minaudpsrv" src="http://www.ashishpaliwal.com/blog/wp-content/uploads/2008/10/minaudpsrv.png" alt="" width="500" height="379" /></a></div>
<p> <script type="text/javascript"><!--
google_ad_client = "pub-6961884887741817";
/* 468x15LinkUnit */
google_ad_slot = "4400881690";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<div>The Server is even simpler than client <img src='http://www.ashishpaliwal.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </div>
<div>We create an instance of NioDatagramAcceptor and add our custom handler to it. We then bind to the port desired. Here I have made it bind to the default port, code can be customized to bind to any port desired.</div>
<p>So what does 31 does. There is wonderful description of this option at <a href="http://www.unixguide.net/network/socketfaq/4.5.shtml">http://www.unixguide.net/network/socketfaq/4.5.shtml</a><br />
The main function is pretty simple. The Server is ready. You can run it, using the Client from the post <a href="http://www.ashishpaliwal.com/blog/2008/10/implementing-udp-client-using-apache-mina/">Implementing UDP Client using Apache MINA</a></p>
<p><strong>References</strong></p>
<div>
<ul>
<li><a href="http://mina.apache.org/udp-tutorial.html">http://mina.apache.org/udp-tutorial.html</a></li>
</ul>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.ashishpaliwal.com/blog/2008/10/implementing-udp-server-using-apache-mina/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Implementing UDP Client using Apache MINA</title>
		<link>http://www.ashishpaliwal.com/blog/2008/10/implementing-udp-client-using-apache-mina/</link>
		<comments>http://www.ashishpaliwal.com/blog/2008/10/implementing-udp-client-using-apache-mina/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 10:47:45 +0000</pubDate>
		<dc:creator>ashish</dc:creator>
				<category><![CDATA[Network Programming]]></category>
		<category><![CDATA[Apache MINA]]></category>
		<category><![CDATA[UDP Client]]></category>

		<guid isPermaLink="false">http://www.ashishpaliwal.com/blog/?p=110</guid>
		<description><![CDATA[Its been a while that I wrote on Apache MINA. Please refer to my post collection on Apache MINA. In this post, I have tried to capture briefly on how to implement a UDP Client using Apache MINA. We shall concentrate on keeping our scope limited to sending data over UDP. In Subsequent posts, we [...]]]></description>
			<content:encoded><![CDATA[<p>Its been a while that I wrote on Apache MINA. Please refer to my post collection on <a href="http://www.ashishpaliwal.com/blog/apache-mina/">Apache MINA</a>.</p>
<p>In this post, I have tried to capture briefly on how to implement a UDP Client using Apache MINA. We shall concentrate on keeping our scope limited to sending data over UDP. In Subsequent posts, we shall see how we can enhance this UDP Client to send SNMP Traps.</p>
<p>In brief, these are the steps we need to perform to send a UDP packet</p>
<ol>
<li>Create a Datagram Socket</li>
<li>Create a Datagram Packet</li>
<li>Send the packet</li>
</ol>
<div>This is how we used to do when using java.net API's. The logical flow remains same, but lets see how it maps to Apache MINA</div>
<div>
<ol>
<li>Create a NioDatagramConnector instance</li>
<li>Add an IoHandler (we can use an IoHandlerAdapter, as for this example we don't need to use all the API's)</li>
<li>Connect the NioDatagramConnector</li>
<li>Get the session</li>
<li>Write the data onto the session</li>
</ol>
<div>There is a slight difference in which the MINA API's work. The API's work asynchronously. A call to connect() on NioDatagramConnector, return a reference to ConnectFuture and the operation is kicked off in a new thread. Lets see how the Code looks like and see it in details.</div>
<p> </p>
<div><a href="http://www.ashishpaliwal.com/blog/wp-content/uploads/2008/10/minaudpclient.png"><img class="alignleft size-full wp-image-113" title="minaudpclient" src="http://www.ashishpaliwal.com/blog/wp-content/uploads/2008/10/minaudpclient.png" alt="" width="500" height="270" /></a></div>
<div> </div>
<p>Lets see the Code in detail now. We have maintained the Session at the class level, assuming that we may reuse the session for sending packets, if session is still active. At line 25, we check if the session is active or not. If inactive we initiate the connection. </p>
<p>Line 28, creates an instance of NioDatagramConnector</p>
<p>Line 31, add an IoHandler to the NioDatagramConnector on Line 28. In MINA terminology, IoHandler contains the code where Business logic of an Application resides. In our case its a pure Adapter, with only log statements inside the functions.</p>
<p>Line 32, a call to connect(), returns an reference to ConnectFuture. The call, starts the connection operation, in a separate thread and returns to the caller. To cater to this asynchronous behaviour, we add an IoFutureListener, to returned ConnectFuture reference. Out there (Line 38-43), we just check if the connection is OK, we get the session from it. Line 39, signals that connection is connected and its safe to get the session for writing data.</p>
<p>The connect code is complete. Lets see how to send the data.</p>
<p><a href="http://www.ashishpaliwal.com/blog/wp-content/uploads/2008/10/minaudpclient_send.png"><img class="aligncenter size-full wp-image-116" title="minaudpclient_send" src="http://www.ashishpaliwal.com/blog/wp-content/uploads/2008/10/minaudpclient_send.png" alt="" width="500" height="286" /></a></p>
<p>The send function is pretty simple. We just create an IoBuffer and call write on the session. We have called connect() on Line 59, just to ensure that the connection is alive. If it isn't, it shall create a connection and return a session back.</p>
<p>NOTE: This code is in its very simple form. There can be various mechanism to handle Session (based on destination etc). Also, please be aware of the asynchronous behaviour of the NioDatagramConnector connect() API. If the connection is not complete in time, you might see a null pointer at Line 67 <img src='http://www.ashishpaliwal.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> . But this is usually the case. For production code, it is advisable to ensure that session is never null.</p>
<p>That's it, out UDP client is ready. To create an SNMP Trap sender, we just need to pass Trap byte array to send() and we are done. Will try to post that article soon.</p>
<p>References</p>
<ul>
<li><a href="http://mina.apache.org/udp-tutorial.html">http://mina.apache.org/udp-tutorial.html</a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.ashishpaliwal.com/blog/2008/10/implementing-udp-client-using-apache-mina/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Apache MINA based Server Application Architecture</title>
		<link>http://www.ashishpaliwal.com/blog/2008/10/apache-mina-based-server-application-architecture/</link>
		<comments>http://www.ashishpaliwal.com/blog/2008/10/apache-mina-based-server-application-architecture/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 11:53:58 +0000</pubDate>
		<dc:creator>ashish</dc:creator>
				<category><![CDATA[Application Programming]]></category>
		<category><![CDATA[Network Programming]]></category>
		<category><![CDATA[Apache MINA]]></category>
		<category><![CDATA[Application Architecture]]></category>

		<guid isPermaLink="false">http://www.ashishpaliwal.com/blog/?p=45</guid>
		<description><![CDATA[Apache MINA is one of the best available NIO Frameworks for creating scalable Server applications in Java. Its fun to create applications using MINA.  Lets have a look how the application architecture looks like Lets briefly see what the Major components are IO service - The API's at this level are responsible for performing actual [...]]]></description>
			<content:encoded><![CDATA[<p>Apache MINA is one of the best available NIO Frameworks for creating scalable Server applications in Java. Its fun to create applications using MINA. </p>
<p>Lets have a look how the application architecture looks like</p>
<p><a href="http://www.ashishpaliwal.com/blog/wp-content/uploads/2008/10/minaappl.png"><img class="aligncenter size-full wp-image-92" title="minaappl" src="http://www.ashishpaliwal.com/blog/wp-content/uploads/2008/10/minaappl.png" alt="" width="500" height="274" /></a>Lets briefly see what the Major components are</p>
<p><strong>IO service</strong> - The API's at this level are responsible for performing actual IO operation over the network</p>
<p><strong>IO Filters</strong> - Filters are the mechanism by which MINA lets a User plugin its code to manipulate the byte stream from the network. Filters are arranged in Filter chain and are called by MINA in the order in which they are present. Filters are mainly used for transforming byte stream into high level objects.</p>
<p><strong>IO Handler</strong> - IO Handler is the heart of application logic. Here is where the whole application logic is concentrated.</p>
<p>MINA is JMX enabled, hence Filters can be dynamically added/removed from the Filter chain.</p>
<p>The framework comes with samples. Please feel free to try them out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ashishpaliwal.com/blog/2008/10/apache-mina-based-server-application-architecture/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>(N)IO Frameworks in Java</title>
		<link>http://www.ashishpaliwal.com/blog/2008/10/nio-frameworks-in-java/</link>
		<comments>http://www.ashishpaliwal.com/blog/2008/10/nio-frameworks-in-java/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 04:55:11 +0000</pubDate>
		<dc:creator>ashish</dc:creator>
				<category><![CDATA[Network Programming]]></category>
		<category><![CDATA[Frameworks]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Java IO frameworks]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://www.ashishpaliwal.com/blog/?p=47</guid>
		<description><![CDATA[In this post, I have tried to briefly capture list of available Java IO application frameworks. IO Frameworks reduces the development time by providing additional features over the bare-bone IO API's provided with Java. Here is the definition I have used for the Framework "An (N)IO Framework is a library, that provides easy to use [...]]]></description>
			<content:encoded><![CDATA[<p>In this post, I have tried to briefly capture list of available Java IO application frameworks. IO Frameworks reduces the development time by providing additional features over the bare-bone IO API's provided with Java.</p>
<p>Here is the definition I have used for the Framework</p>
<p>"<em>An (N)IO Framework is a library, that provides easy to use API by shielding low level complexity of IO and provides rich and reusable API's to create robust and scalable Networking Applications</em>".</p>
<p>A key point here is, only complexity is reduced, the power of low level API's is still available.</p>
<p>Have been using Apache MINA for a while, and found some similar and powerful frameworks. The idea is to share the result of searches. I don't intent to compare them on their performances or features. The text for the frameworks have been picked from the respective websites.</p>
<ul>
<li><a href="http://mina.apache.org/" target="_blank">Apache MINA</a>   - MINA (Multipurpose Infrastructure for Network Applications) is a network application framework which helps users develop high performance and high scalability network applications easily.</li>
<li><a href="http://sourceforge.net/projects/xsocket" target="_blank">xSockets</a> - xSocket is a lightweight java nio-based server framework to build high performance, high scalable, multithreaded servers. It supports writing synchronous and asynchronous client-side applications as well as server-side applications in a very intuitive way  </li>
<li><a href="https://grizzly.dev.java.net/" target="_blank">Grizzly</a> - The Grizzly framework has been designed to help developers to take         advantage of the Java™ NIO API. Grizzly goals is to help developers         to build scalable and robust servers using NIO.</li>
<li><a href="https://www.jboss.org/netty/" target="_blank">Netty</a> - Netty is a NIO client server framework which enables quick and easy development of network applications such as protocol servers and clients. It greatly simplifies and streamlines network programming such as TCP/IP socket server</li>
</ul>
<div>There are a few others, have picked up the popular ones. </div>
<div><strong>References</strong></div>
<div>
<ul>
<li><a href="http://java-source.net/open-source/network-servers">http://java-source.net/open-source/network-servers</a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.ashishpaliwal.com/blog/2008/10/nio-frameworks-in-java/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
