@@ -41,7 +41,7 @@ public class SocketClient { | |||
OutputStream os=socket.getOutputStream(); | |||
PrintWriter pw=new PrintWriter(os); | |||
// TODO 发生命令 | |||
String info="用户名:Tom,用户密码:123456"; | |||
//String info="用户名:Tom,用户密码:123456"; | |||
pw.write(astCmd); | |||
pw.flush(); | |||
socket.shutdownOutput(); | |||
@@ -67,6 +67,7 @@ public class SocketClient { | |||
is.close(); | |||
pw.close(); | |||
os.close(); | |||
log.debug(ackResult); | |||
return ackResult; | |||
} catch (IOException e) { | |||
log.error("Socket sendCmd Error:" + e.getMessage()); | |||