[英]How does java send informations?
Tell me. 告诉我。
What heppens when I invoke Socket.getOutputStream.write(); 当我调用Socket.getOutputStream.write()时会发生什么? then Socket.getOutputStream.flush(); 然后Socket.getOutputStream.flush(); ? ? Because when I want to send more than around 8162 bytes It sends only bytes which can be placed in this size. 因为当我要发送超过8162字节左右的字节时,它仅发送可以放置此大小的字节。 And next bytes aren't sent. 并且不会发送下一个字节。
Explain me please. 请给我解释一下。
我不使用Java,但我可能错了,但我的建议是Socket有一个用于传出数据的缓冲区,最大大小约为8162字节,超出该数量的数据将被从缓冲区中截断,因此将不发送
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.