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