문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top