Package com.ngt.jopenmetaverse.shared.protocol

Examples of com.ngt.jopenmetaverse.shared.protocol.StartPingCheckPacket$PingIDBlock


  /// <summary>Process an incoming packet and raise the appropriate events</summary>
  /// <param name="sender">The sender</param>
  /// <param name="e">The EventArgs object containing the packet data</param>
  protected void StartPingCheckHandler(Object sender, PacketReceivedEventArgs e)
  {
    StartPingCheckPacket incomingPing = (StartPingCheckPacket)e.getPacket();
    CompletePingCheckPacket ping = new CompletePingCheckPacket();
    ping.PingID.PingID = incomingPing.PingID.PingID;
    ping.header.Reliable = false;
    // TODO: We can use OldestUnacked to correct transmission errors
    //   I don't think that's right.  As far as I can tell, the Viewer
View Full Code Here


    }

    //if (oldestUnacked != 0)
    //    Logger.DebugLog("Sending ping with oldestUnacked=" + oldestUnacked);

    StartPingCheckPacket ping = new StartPingCheckPacket();
    ping.PingID.PingID = Stats.LastPingID++;
    ping.PingID.OldestUnacked = oldestUnacked;
    ping.header.Reliable = false;
    SendPacket(ping);
    Stats.LastPingSent = Utils.getUnixTime();
View Full Code Here

TOP

Related Classes of com.ngt.jopenmetaverse.shared.protocol.StartPingCheckPacket$PingIDBlock

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.