Skip to content

vbence/nio2test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NIO.2 socket tester

A demo application to check whether all successful writes can be read on the other end of the TCP socket using AsynchronousByteChannel#write.

Building

The NetBeans ant project can be built in NetBeans just by running ant from command line:

ant

Running

The jar file created in the dist folder contains both the server and client.

The server will listen on all available interfaces. To run it enter:

java -jar Nio2Test.jar

The client can be parameterized with a hostname (or IP address) if an interface other than "127.0.0.1" needs to be used to access the server:

java -cp Nio2Test.jar nio2test.Nio2TestClient [servername]

About

Tests continuous write to a NIO.2 AsynchronousSocketChannel.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages