WINSOCKET客户端编程以及JMETER外部调用.docxVIP

  • 1
  • 0
  • 约7.23千字
  • 约 6页
  • 2020-03-23 发布于贵州
  • 举报

WINSOCKET客户端编程以及JMETER外部调用.docx

1 public class SocketClient { 2 OutputStream clientout = null; 3 InputStream clienIn = null; 4 byte[] b = new byte[1024]; 5 // String sendstr=From client 111; 6 static String hex = ; 7 Socket socket = null; 8 static String hexStr = 0123456789ABCDEF; 9 long diff1, diff2, start1, start2, end1, end2; 10 SocketAddress socketAddress = null; 11 12 /** 13 * 连接、获取流 14 */ 15 public String CallClient(String serverIp, int port, String fileName, 16 int timeout1, int timeout2, String successCode) throws IOException { 17 try { 18 socketAddress = new InetSocketAddress(serverIp, port); 19 long start1 = System

文档评论(0)

1亿VIP精品文档

相关文档