南昌市物联网技防平台-后台
Administrator
2021-03-04 a08f28be2302ce139aecb34765296e2b47afd129
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package org.springblade.jfpt.nettyTcpServer;
 
 
public class NettyProPool {
 
    /**
     * 协议开始的标志,16进制为 0*76
     */
    private int haed_data=NettyConstant.HEAD_DATA;
 
    /**
     * 传送的长度
     */
    private int contentLength;
 
    /**
     * 传送的内容
     */
    private byte[] content;
 
    public NettyProPool(int contentLength) {
        this.contentLength = contentLength;
    }
 
    public int getContentLength() {
        return contentLength;
    }
 
    public void setContentLength(int contentLength) {
        this.contentLength = contentLength;
    }
 
    public NettyProPool(int contentLength, byte[] content) {
        this.contentLength = contentLength;
        this.content = content;
    }
 
    public byte[] getContent() {
        return content;
    }
 
    public void setContent(byte[] content) {
        this.content = content;
    }
 
    public int getHaed_data() {
        return haed_data;
    }
 
    public void setHaed_data(int haed_data) {
        this.haed_data = haed_data;
    }
}