views:

77

answers:

1

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?

+3  A: 

Try original W. Richard Stevens' sock, it gives you ton of options.

Nikolai N Fetissov
Thanks, is there something on a level above TCP?
hotzen
What exactly are you looking for? Benchmarking tools?
Nikolai N Fetissov
No, had a deeper look into sock. Works great, thank you!
hotzen