Package soc.qase.com.packet

Examples of soc.qase.com.packet.Sequence


/*-------------------------------------------------------------------*/
  private void init()
  {
    ping = 0;
    currentTime = 0;
    clientSequence = new Sequence(0);
    serverSequence = new Sequence(0);
    lastReliableSequence = new Sequence(0);
  }
View Full Code Here


/*-------------------------------------------------------------------*/
/*-------------------------------------------------------------------*/
  private byte[] processIncomingPacket(byte[] data)
  {
    ClientPacket currentPacket;
    Sequence sequenceOne = null;
    Sequence sequenceTwo = null;
    int length = 0;

    sequenceOne = new Sequence(data);

    if(sequenceOne.intValue() == 0x7fffffff && sequenceOne.isReliable())
      return data;
    else
    {
      serverSequence = sequenceOne;
      sequenceTwo = new Sequence(data, 4);

      if(serverSequence.isReliable())
      {
        if(serverSequence.intValue() > lastReliableSequence.intValue())
        {
          lastReliableSequence = new Sequence(serverSequence.intValue());
          serverBit = serverBit ^ true;
        }
      }

      if(sequenceTwo.isReliable() != clientBit)
      {
        clientBit = sequenceTwo.isReliable();
        reliableReceived = true;       
      }
    }

    return data;
View Full Code Here

@see soc.qase.file.dm2.DM2Recorder */
/*-------------------------------------------------------------------*/
  private void processIncomingDataPacket(byte[] incomingData)
  {
    Packet packet = null;
    Sequence sequenceOne = new Sequence(incomingData);

    if(sequenceOne.intValue() == 0x7fffffff && sequenceOne.isReliable())
    {
      packet = new ConnectionlessPacket(incomingData);
      processConnectionlessPacket((ConnectionlessPacket)packet);
    }
    else
View Full Code Here

TOP

Related Classes of soc.qase.com.packet.Sequence

Copyright © 2018 www.massapicom. 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.