private NettyMessage buildLoginReq() {
   NettyMessage message = new NettyMessage();
   Header header = new Header();
   header.setType((byte) MessageType.HAND_REQ.value);
   message.setHeader(header);
   return message;
 }
示例#2
0
 private static Header createHeader(short type) {
   Header header = new Header();
   header.setType(type);
   return header;
 }