------解决方案-------------------- java有readInt和writeInt方法,可以先试试, 如果对应不上就用read(byte[])和write(byte[]),然后字节转换
------解决方案-------------------- inStream = new DataInputStream(socket.getInputStream()); int i = inStream.readInt();
------解决方案--------------------