|
|
@@ -4,6 +4,8 @@ import lombok.extern.slf4j.Slf4j; |
|
|
|
|
|
|
|
import java.io.*; |
|
|
|
import java.net.Socket; |
|
|
|
import java.nio.charset.StandardCharsets; |
|
|
|
|
|
|
|
/** |
|
|
|
* @program: dipperposition |
|
|
|
* @description: socket连接单元 |
|
|
@@ -50,7 +52,7 @@ public class SocketClient { |
|
|
|
String reply=null; |
|
|
|
//输入流 |
|
|
|
InputStream is=socket.getInputStream(); |
|
|
|
BufferedReader br=new BufferedReader(new InputStreamReader(is)); |
|
|
|
BufferedReader br=new BufferedReader(new InputStreamReader(is, StandardCharsets.UTF_8)); |
|
|
|
|
|
|
|
String ackResult=""; |
|
|
|
String ackHexOut = HexConvert.convertStringToHex(ackAckCheckRef); |
|
|
|