/**
  * 注册协议文件
  *
  * @param protoType
  * @param protocol
  * @return
  */
 public final boolean registerPacket(int type, HawkPacket packet) {
   if (packetStub.containsKey(type)) {
     HawkLog.errPrintln("register duplicate packet, type: " + type);
     return false;
   }
   packetStub.put(type, packet);
   return true;
 }