📄 hashobj.java
字号:
package com.gps.center.baseclass;
import java.nio.channels.SocketChannel;
import java.nio.channels.SelectionKey;
import java.util.Date;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.util.HashMap;
/*
边界类:主要由外部通信使用
包括电话号码,车台IP,端口号,车台TCP-KEY,终端TCP-KEY,UDP-Socket,传送方式使用标识
*/
public class HashObj {
public HashObj() {
this.cPhonNum = "";
this.cDeviceAdd = null;
this.cDevicePort = 0;
this.cDeviceKey = null;
this.cTerminalKey = null;
this.cUdpSocket = null;
this.cDeviceTcpUsed = false;
this.cDeviceUdpUsed = false;
this.cDeviceSmsUsed = false;
this.cTerminalTcpUsed = false;
}
public String cPhonNum;
public InetAddress cDeviceAdd;//网络地址的引用
public int cDevicePort;//设备端口
public SelectionKey cDeviceKey;
public SelectionKey cTerminalKey;
public DatagramSocket cUdpSocket;
public boolean cDeviceTcpUsed;
public boolean cDeviceUdpUsed;
public boolean cDeviceSmsUsed;
public boolean cTerminalTcpUsed;
public Date cDateTime;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -