Testing SocketChannel NIO

Posted by hotzen on Stack Overflow See other posts from Stack Overflow or by hotzen
Published on 2010-05-25T20:22:19Z Indexed on 2010/05/25 20:31 UTC
Read the original article Hit count: 351

Filed under:
|
|
|
|

Hello,

I just wrote some NIO-code and wonder how to stress-test my implementation regarding

  • SocketChannel.write(ByteBuffer) not able to write the whole byte-buffer
  • SocketChannel.read(ByteBuffer) reading the data in chunks into ByteBuffer

are there some simple linux-utilities like telnet to open a ServerSocket with some buffering-options?

© Stack Overflow or respective owner

Related posts about java

Related posts about sockets