Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
inputstream is; is.read() { perform a function }
写入同一个套接字
我想要阅读和写作之间的延迟
您可以 read() 数据和Thread.sleep(millis);要添加的时间量。
Thread.sleep(millis);
这只是一个近似值,WAN 模拟器最适合用于专业测试(而且价格昂贵;)