how to write a complete server client communication using java nio

16,205

Solution 1

You might give a look at Apache Mina. If you only want to learn java NIO it might me a little to hard to grasp.

Solution 2

Apache Mina
http://mina.apache.org
Apache MINA is a network application framework which helps users develop high performance and high scalability network applications easily.

xSocket
http://xsocket.org/
xSocket is an easy to use NIO-based library to build high performance, highly scalable network applications.

JBoss Netty
http://netty.io/
The Netty project is an effort to provide an asynchronous event-driven network application framework and tools for rapid development of maintainable high performance and high scalability protocol servers and clients.

Sun MicroSystem's Grizzly
https://grizzly.java.net/
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.

NIO Framework
http://nioframework.sourceforge.net
The NIO Framework is a library on top of NIO that hides most of the complexity of plain NIO. With the NIO Framework you can implement high-performance Java network applications without having to deal with all the nasty details of NIO.

QuickServer
http://www.quickserver.org
QuickServer is an open source Java library/framework for quick creation of robust multi-client TCP server applications. QuickServer provides an abstraction over the ServerSocket, Socket and other network and input output classes and it eases the creation of powerful network servers.

Solution 3

Have a look in your JDK under the directory called sample

Share:
16,205
Lastbuilders
Author by

Lastbuilders

Updated on June 08, 2022

Comments

  • Lastbuilders
    Lastbuilders almost 2 years

    I am new to java NIO. I have to write a simple server client communication program using Java NIO.

    Is there any sample programs or any link where can I go for this?

  • Lastbuilders
    Lastbuilders about 15 years
    Hi, Thanks for your co-operation Finally I have created socket client program.