public RequestHandler(DataInputStream iStream, DataOutputStream oStream) {
try{
System.out.println("iStream:"+iStream);
System.out.println("到RequestHandler!");这里都可以读出值
System.out.println("iStream.readUTF():"+iStream.readUTF());这里就读不出来
String clientVersion = iStream.readUTF();
System.out.println("执行到这了嘛!");
System.out.println("clientVersion:"+clientVersion);
int clientCommand = iStream.readInt();
System.out.println("clientCommand:"+clientCommand);
realDoCommand(clientCommand, clientVersion,iStream, oStream);
oStream.flush();
oStream.close();
}catch(Exception e){
e.printStackTrace();
}
}
还有就是我怎么去测试。请教高手 谢谢!!
------解决方案--------------------------------------------------------
自己先顶一下!!!!
------解决方案--------------------------------------------------------
大家救救我啊!!!
------解决方案--------------------------------------------------------
谁顶我就给分!!!
------解决方案--------------------------------------------------------
我也是同样的问题呀。。。求助