|
|
@ -14,10 +14,10 @@ public class ProxyMessage { |
|
|
|
public static final byte TYPE_HEARTBEAT = 0x07; |
|
|
|
public static final byte TYPE_HEARTBEAT = 0x07; |
|
|
|
|
|
|
|
|
|
|
|
/** 认证消息,检测clientKey是否正确 */ |
|
|
|
/** 认证消息,检测clientKey是否正确 */ |
|
|
|
public static final byte TYPE_AUTH = 0x01; |
|
|
|
public static final byte C_TYPE_AUTH = 0x01; |
|
|
|
|
|
|
|
|
|
|
|
/** 保活确认消息 */ |
|
|
|
// /** 保活确认消息 */
|
|
|
|
public static final byte TYPE_ACK = 0x02; |
|
|
|
// public static final byte TYPE_ACK = 0x02;
|
|
|
|
|
|
|
|
|
|
|
|
/** 代理后端服务器建立连接消息 */ |
|
|
|
/** 代理后端服务器建立连接消息 */ |
|
|
|
public static final byte TYPE_CONNECT = 0x03; |
|
|
|
public static final byte TYPE_CONNECT = 0x03; |
|
|
@ -26,10 +26,10 @@ public class ProxyMessage { |
|
|
|
public static final byte TYPE_DISCONNECT = 0x04; |
|
|
|
public static final byte TYPE_DISCONNECT = 0x04; |
|
|
|
|
|
|
|
|
|
|
|
/** 代理数据传输 */ |
|
|
|
/** 代理数据传输 */ |
|
|
|
public static final byte TYPE_TRANSFER = 0x05; |
|
|
|
public static final byte P_TYPE_TRANSFER = 0x05; |
|
|
|
|
|
|
|
|
|
|
|
/** 用户与代理服务器以及代理客户端与真实服务器连接是否可写状态同步 */ |
|
|
|
/** 用户与代理服务器以及代理客户端与真实服务器连接是否可写状态同步 */ |
|
|
|
public static final byte TYPE_WRITE_CONTROL = 0x06; |
|
|
|
public static final byte C_TYPE_WRITE_CONTROL = 0x06; |
|
|
|
|
|
|
|
|
|
|
|
/** 消息类型 */ |
|
|
|
/** 消息类型 */ |
|
|
|
private byte type; |
|
|
|
private byte type; |
|
|
@ -77,8 +77,7 @@ public class ProxyMessage { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public String toString() { |
|
|
|
public String toString() { |
|
|
|
return "ProxyMessage [type=" + type + ", serialNumber=" + serialNumber + ", uri=" + uri + ", data=" |
|
|
|
return "ProxyMessage [type=" + type + ", serialNumber=" + serialNumber + ", uri=" + uri + ", data=" + Arrays.toString(data) + "]"; |
|
|
|
+ Arrays.toString(data) + "]"; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|