简体   繁体   English

Java如何发送信息?

[英]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.

相关问题 如何在Java应用程序中收集Google Map信息? - How to collect google map informations in java application? 运行脚本时如何将信息发送到RFT回放窗口? - How to send informations to RFT playback window when running scripts? 如何通过java httpClient查找目标Web服务器的任何信息? - How find any informations of target Web server by java httpClient? 如何在运行时使用新 API (Java 9) 获取 JavaBean 信息? - How to obtain JavaBean informations at runtime with new API (Java 9)? 如何使用java获取处理器名称并注册到信息? - How to get the processor name and registered to informations using java? 如何使用Java从txt文件读取/获取一些特定信息 - How can I read/get some specific informations from txt file using Java 如何在java.sql.Connection中检索主机、端口、sid、用户和密码信息 - How to retrieve host, port, sid, user and password informations in java.sql.Connection 如何使用输入(java)从具有名称的文件中搜索信息? - How can I search informations from file with names using input (java)? 如何发送 object 未在 java DatagramSocket 中实现 Serializable 接口 - How to send an object does not implement Serializable interface in java DatagramSocket 如何保存网页信息? - How to save web page informations?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM