📄 client.java
字号:
package Application;
import java.io.*;
import java.net.*;
import java.util.*;
import javax.comm.*;
public class Client implements Runnable, SerialPortEventListener {
static CommPortIdentifier portId;
// static CommPortIdentifier portId1;
static OutputStream outputStream;
static OutputStream outputStream2;
Thread readThread;
// Thread readThread2;
static Enumeration portList;
InputStream inputStream;
static SerialPort serialPort;
static SerialPort serialPort1;
static BufferedReader buf;
static PrintWriter toServer;
public static void main(String[] args) throws IOException {
Ircontrol rcontrol = new Ircontrol();
Plccontrol pcontrol = new Plccontrol();
Delay delay = new Delay();
int maxarrnum = 1;
String query[];
query = new String[maxarrnum];
query[0] = "query鈾
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -