Пример #1
0
 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;
 }