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;
|
}
|
}
|