开发者

Testing SocketChannel NIO

开发者 https://www.devze.com 2023-01-01 13:31 出处:网络
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-buf开发者_StackOverflow社区fer

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-buf开发者_StackOverflow社区fer
  • 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号