java端:
DataInputStream stream = new DataInputStream(new BufferedInputStream(socket.getInputStream, bufferSize))
int length = stream.readInt()
byte[] obj = new byte[length]
stream.readFully(obj)
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
http://blog.csdn.net/guotong1988/article/details/50946032