Package com.ngt.jopenmetaverse.shared.protocol

Examples of com.ngt.jopenmetaverse.shared.protocol.Packet


  /// <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 BulkUpdateInventoryHandler(Object sender, PacketReceivedEventArgs e) throws UnsupportedEncodingException
  {
    Packet packet = e.getPacket();

    BulkUpdateInventoryPacket update = (BulkUpdateInventoryPacket)packet;

    if (update.FolderData.length > 0 && update.FolderData[0].FolderID != UUID.Zero)
    {
View Full Code Here


  /// <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 FetchInventoryReplyHandler(Object sender, PacketReceivedEventArgs e) throws UnsupportedEncodingException
  {
    Packet packet = e.getPacket();

    FetchInventoryReplyPacket reply = (FetchInventoryReplyPacket)packet;

    for(FetchInventoryReplyPacket.InventoryDataBlock dataBlock : reply.InventoryData)
    {
View Full Code Here

  /// <param name="e">The EventArgs object containing the packet data</param>
  protected void ReplyTaskInventoryHandler(Object sender, PacketReceivedEventArgs e) throws UnsupportedEncodingException
  {
    if (onTaskInventoryReply != null)
    {
      Packet packet = e.getPacket();

      ReplyTaskInventoryPacket reply = (ReplyTaskInventoryPacket)packet;

      onTaskInventoryReply.raiseEvent(new TaskInventoryReplyEventArgs(reply.InventoryData.TaskID, reply.InventoryData.Serial,
          Utils.bytesWithTrailingNullByteToString(reply.InventoryData.Filename)));
View Full Code Here

  /// <param name="sender">The sender</param>
  /// <param name="e">The EventArgs object containing the packet data</param>
  protected void ObjectUpdateHandler(Object sender, PacketReceivedEventArgs e) throws Exception
  {
    JLogger.debug("Starting ObjectUpdateHandler ...");
    Packet packet = e.getPacket();
    final Simulator simulator = e.getSimulator();

    final ObjectUpdatePacket update = (ObjectUpdatePacket)packet;
    UpdateDilation(e.getSimulator(), update.RegionData.TimeDilation);
View Full Code Here

  /// </summary>
  /// <param name="sender">The sender</param>
  /// <param name="e">The EventArgs object containing the packet data</param>
  protected void ImprovedTerseObjectUpdateHandler(Object sender, PacketReceivedEventArgs e)
  {
    Packet packet = e.getPacket();
    final Simulator simulator = e.getSimulator();

    final ImprovedTerseObjectUpdatePacket terse = (ImprovedTerseObjectUpdatePacket)packet;
    UpdateDilation(simulator, terse.RegionData.TimeDilation);
View Full Code Here

  /// <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 ObjectUpdateCompressedHandler(Object sender, PacketReceivedEventArgs e) throws Exception
  {
    Packet packet = e.getPacket();
    Simulator simulator = e.getSimulator();

    ObjectUpdateCompressedPacket update = (ObjectUpdateCompressedPacket)packet;

    for (int b = 0; b < update.ObjectData.length; b++)
View Full Code Here

  /// <param name="e">The EventArgs object containing the packet data</param>
  protected void ObjectUpdateCachedHandler(Object sender, PacketReceivedEventArgs e)
  {
    if (Client.settings.ALWAYS_REQUEST_OBJECTS)
    {
      Packet packet = e.getPacket();
      Simulator simulator = e.getSimulator();

      ObjectUpdateCachedPacket update = (ObjectUpdateCachedPacket)packet;
      List<Long> ids = new ArrayList<Long>(update.ObjectData.length);
View Full Code Here

  /// <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 KillObjectHandler(Object sender, PacketReceivedEventArgs e)
  {
    Packet packet = e.getPacket();
    Simulator simulator = e.getSimulator();

    KillObjectPacket kill = (KillObjectPacket)packet;

    // Notify first, so that handler has a chance to get a
View Full Code Here

  /// <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 ObjectPropertiesHandler(Object sender, PacketReceivedEventArgs e) throws UnsupportedEncodingException
  {
    Packet packet = e.getPacket();
    Simulator simulator = e.getSimulator();

    ObjectPropertiesPacket op = (ObjectPropertiesPacket)packet;
    ObjectPropertiesPacket.ObjectDataBlock[] datablocks = op.ObjectData;
View Full Code Here

  /// <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 ObjectPropertiesFamilyHandler(Object sender, PacketReceivedEventArgs e) throws UnsupportedEncodingException
  {
    Packet packet = e.getPacket();
    Simulator simulator = e.getSimulator();

    final ObjectPropertiesFamilyPacket op = (ObjectPropertiesFamilyPacket)packet;
    ObjectProperties props = new ObjectProperties();
View Full Code Here

TOP

Related Classes of com.ngt.jopenmetaverse.shared.protocol.Packet

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.