Archive | Network Programming

28 October 2008 ~ 1 Comment

Implementing Trap Sender using SNMP4J

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 encoded Trap data
 

The code [...]

Continue Reading

22 October 2008 ~ 2 Comments

Implementing Trap Receiver in 30 minutes using Apache MINA

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 our [...]

Continue Reading

21 October 2008 ~ 1 Comment

Implementing UDP Server using Apache MINA

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 in a separate [...]

Continue Reading

Tags: , ,

20 October 2008 ~ 11 Comments

Implementing UDP Client using Apache MINA

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 shall [...]

Continue Reading

14 October 2008 ~ 5 Comments

Apache MINA based Server Application Architecture

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 IO operation over [...]

Continue Reading