Examples of AbstractPacket


Examples of mantle.common.network.AbstractPacket

    climbing = false;
    onGround = false;
  }

  void resetFallDamage() {
    AbstractPacket packet = new DoubleJumpPacket();
    updateServer(packet);
  }
View Full Code Here

Examples of mantle.common.network.AbstractPacket

    AbstractPacket packet = new DoubleJumpPacket();
    updateServer(packet);
  }

  public static void openArmorGui() {
    AbstractPacket packet = new AccessoryInventoryPacket(ArmorProxyCommon.armorGuiID);
    updateServer(packet);
  }
View Full Code Here

Examples of mantle.common.network.AbstractPacket

    AbstractPacket packet = new AccessoryInventoryPacket(ArmorProxyCommon.armorGuiID);
    updateServer(packet);
  }

  public static void openKnapsackGui() {
    AbstractPacket packet = new AccessoryInventoryPacket(ArmorProxyCommon.knapsackGuiID);
    updateServer(packet);
  }
View Full Code Here

Examples of mantle.common.network.AbstractPacket

    AbstractPacket packet = new AccessoryInventoryPacket(ArmorProxyCommon.knapsackGuiID);
    updateServer(packet);
  }

  private void toggleGoggles() {
    AbstractPacket packet = new GogglePacket(activeGoggles);
    updateServer(packet);
  }
View Full Code Here

Examples of mantle.common.network.AbstractPacket

    AbstractPacket packet = new GogglePacket(activeGoggles);
    updateServer(packet);
  }

  private void toggleBelt() {
    AbstractPacket packet = new BeltPacket();
    updateServer(packet);
  }
View Full Code Here

Examples of net.timewalker.ffmq3.transport.packet.AbstractPacket

            {
              int actualMaxPacketSize = Integer.MAX_VALUE;
              if (maxPacketSize != -1)
                actualMaxPacketSize = trustedConnection ? maxPacketSize : 1024;

                AbstractPacket packet = receive(actualMaxPacketSize);
                if (packet == null)
                {
                  if (stopRequired)
                    break;
                 
View Full Code Here

Examples of net.timewalker.ffmq3.transport.packet.AbstractPacket

        currentInputOffset += readAmount;
       
        // Packet is complete ?
        if (currentInputOffset == packetInputBuffer.size())
        {
          AbstractPacket packet = unserializePacket(packetInputBuffer);
          if (packet == null)
            return false; // Invalid packet
          packetInputBuffer.clear();
          currentInputOffset = 0;
         
View Full Code Here

Examples of net.timewalker.ffmq3.transport.packet.AbstractPacket

        currentOutputOffset += writeAmount;
       
        // Packet completly sent ?
        if (currentOutputOffset == packetOutputBuffer.size())
        {
          AbstractPacket sentPacket;
          synchronized (sendQueue)
          {
            sentPacket = (AbstractPacket)sendQueue.removeFirst();
          }
          packetOutputBuffer.clear();
View Full Code Here

Examples of net.timewalker.ffmq3.transport.packet.AbstractPacket

          // De-queue pending messages and move them to the pipeline
          synchronized (sendQueue)
                {
                    while (!sendQueue.isEmpty() && pipeline.size() < 16)
                    {
                        AbstractPacket packet = (AbstractPacket)sendQueue.removeFirst();
                        pipeline.add(packet);
                    }
                }
              
          if (pipeline.size() > 0)
          {             
              // Serialize all pipelined packets to buffer
              while (pipeline.size() > 0)
              {
                  AbstractPacket packet = (AbstractPacket)pipeline.removeFirst();
                 
                  // We need to serialize the packet in a side buffer in order to
                  // know its final size before writing it to the actual output stream
                      RawDataBuffer buffer = outChannel.ioBuffer;
                      buffer.clear();
View Full Code Here

Examples of org.activemq.message.AbstractPacket

        writeBoolean(packet.isReceiptRequired(), dataOut);
        writeString(packet.getBrokersVisitedAsString(), dataOut);
    }

    public void buildPacket(Packet p, DataInput dataIn) throws IOException {
        AbstractPacket packet = (AbstractPacket) p;
        packet.setId(dataIn.readShort());
        packet.setReceiptRequired(readBoolean(dataIn));
        packet.setBrokersVisitedAsString(readString(dataIn));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.