> Thanks for the response.
>
> But, I mean for which java class can be used for the
> same?
Use a plain socket if you don't plan to create a scalable server. Take a look at the NIO library called MINA fron Apache if you want to use NIO, but dont' want to implement everything from scratch.
Kaj