IO流问题
老师,按您的思路,自己写的接收服务端相应的getData方法,为什么接受不成功呢?
socket =new Socket("localhost", 8800);
ois=new ObjectInputStream(new BufferedInputStream(socket.getInputStream()));
CommandTransfer transfer=(CommandTransfer)ois.readObject();
socket.shutdownInput();
return transfer;