|
|
@@ -65,15 +65,15 @@ public class SocketClient { |
|
|
|
// break; |
|
|
|
//} |
|
|
|
} |
|
|
|
String ackResult = HexConvert.convertHexToString(ackResultBuf.toString()); |
|
|
|
//String ackResult = HexConvert.convertHexToString(ackResultBuf.toString()); |
|
|
|
//4.关闭资源 |
|
|
|
br.close(); |
|
|
|
is.close(); |
|
|
|
pw.close(); |
|
|
|
os.close(); |
|
|
|
log.debug(ackResult); |
|
|
|
log.debug("接收服务器的信息:"+ackResult); |
|
|
|
return ackResult; |
|
|
|
log.debug("接收服务器的信息:"+ackResultBuf.toString()); |
|
|
|
return ackResultBuf.toString(); |
|
|
|
} catch (IOException e) { |
|
|
|
log.error("Socket sendCmd Error:" + e.getMessage()); |
|
|
|
return null; |
|
|
|