msgobj.java~1~

来自「用java写编写的一个GPS源代码请大家多多指教」· JAVA~1~ 代码 · 共 30 行

JAVA~1~
30
字号
package com.gps.center.fatherpack;

import java.net.DatagramSocket;
import java.nio.channels.SelectionKey;
import java.net.InetAddress;

public class MsgObj {
  public MsgObj() {
    //cMsgtype:1--TCPMSG,2--DEVICEUDPMSG,3--SMSMSG
    //4--TCPSENDTODEVICE,5--UDPSENDTODEVICE,6--SMSSENDTODEVICE,7--TCPSENDTOTERMINAL,8--TCPRETURNTERMINAL
    this.cMsgType = 0;
    this.cMsg = "";
    this.cPhoneNum = "";
//    this.cSocket = null;
    this.cDeviceAdd = null;
    this.cUdpPort = 0;
    this.cUdpSocket = null;
  }
  public int cMsgType;//车台消息类型
  public String cMsg;//消息实体
  public String cDeviceID;//设备ID
  public String cPhoneNum;//电话号码
//  public SocketChannel cSocket = null;
  public DatagramSocket cUdpSocket;//
//  public String cUdpIP;
  public InetAddress cDeviceAdd;
  public int cUdpPort;
  public SelectionKey cSelectionKey;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?