Package com.ngt.jopenmetaverse.shared.protocol

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


  /// <param name="e">The EventArgs object containing the packet data</param>
  protected void PlacesReplyHandler(Object sender, PacketReceivedEventArgs e) throws UnsupportedEncodingException
  {
    if (OnPlaces != null)
    {
      Packet packet = e.getPacket();
      PlacesReplyPacket placesReply = (PlacesReplyPacket)packet;
      List<PlacesSearchData> places = new ArrayList<PlacesSearchData>();

      for (PlacesReplyPacket.QueryDataBlock block : placesReply.QueryData)
      {
View Full Code Here


  /// <param name="e">The EventArgs object containing the packet data</param>
  protected void EventsReplyHandler(Object sender, PacketReceivedEventArgs e) throws UnsupportedEncodingException
  {
    if (OnDirEvents != null)
    {
      Packet packet = e.getPacket();
      DirEventsReplyPacket eventsReply = (DirEventsReplyPacket)packet;
      List<EventsSearchData> matches = new ArrayList<EventsSearchData>(eventsReply.QueryReplies.length);

      for (DirEventsReplyPacket.QueryRepliesBlock reply : eventsReply.QueryReplies)
      {
View Full Code Here

  /// <param name="e">The EventArgs object containing the packet data</param>
  protected void EventInfoReplyHandler(Object sender, PacketReceivedEventArgs e) throws UnsupportedEncodingException
  {
    if (OnEventInfo != null)
    {
      Packet packet = e.getPacket();
      EventInfoReplyPacket eventReply = (EventInfoReplyPacket)packet;
      EventInfo evinfo = new EventInfo();
      evinfo.ID = eventReply.EventData.EventID;
      evinfo.Name = Utils.bytesWithTrailingNullByteToString(eventReply.EventData.Name);
      evinfo.Desc = Utils.bytesWithTrailingNullByteToString(eventReply.EventData.Desc);
View Full Code Here

  /// <param name="e">The EventArgs object containing the packet data</param>
  protected void DirPlacesReplyHandler(Object sender, PacketReceivedEventArgs e) throws UnsupportedEncodingException
  {
    if (OnDirPlaces != null)
    {
      Packet packet = e.getPacket();
      DirPlacesReplyPacket reply = (DirPlacesReplyPacket)packet;
      List<DirectoryParcel> result = new ArrayList<DirectoryParcel>();

      for (int i = 0; i < reply.QueryReplies.length; i++)
      {
View Full Code Here

        /// <param name="e">The EventArgs object containing the packet data</param>
        protected void UUIDNameReplyHandler(Object sender, PacketReceivedEventArgs e) throws UnsupportedEncodingException
        {
            if (onUUIDNameReply != null)
            {
                Packet packet = e.getPacket();
                Map<UUID, String> names = new HashMap<UUID, String>();
                UUIDNameReplyPacket reply = (UUIDNameReplyPacket)packet;

                for (UUIDNameReplyPacket.UUIDNameBlockBlock block : reply.UUIDNameBlock)
                {
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 AvatarAnimationHandler(Object sender, PacketReceivedEventArgs e)
        {
            Packet packet = e.getPacket();

            if (onAvatarAnimation != null)
            {
                AvatarAnimationPacket data = (AvatarAnimationPacket)packet;
View Full Code Here

        /// <param name="e">The EventArgs object containing the packet data</param>
        protected void AvatarAppearanceHandler(Object sender, PacketReceivedEventArgs e) throws Exception
        {
            if (onAvatarAppearance != null || Client.settings.AVATAR_TRACKING)
            {
                Packet packet = e.getPacket();
                Simulator simulator = e.getSimulator();

                final AvatarAppearancePacket appearance = (AvatarAppearancePacket)packet;

                List<Byte> visualParams = new ArrayList<Byte>();
View Full Code Here

        /// <param name="e">The EventArgs object containing the packet data</param>
        protected void AvatarPropertiesHandler(Object sender, PacketReceivedEventArgs e) throws UnsupportedEncodingException
        {
            if (onAvatarPropertiesReply != null)
            {
                Packet packet = e.getPacket();
                AvatarPropertiesReplyPacket reply = (AvatarPropertiesReplyPacket)packet;
                Avatar.AvatarProperties properties = new Avatar.AvatarProperties();

                properties.ProfileImage = reply.PropertiesData.ImageID;
                properties.FirstLifeImage = reply.PropertiesData.FLImageID;
View Full Code Here

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

                AvatarInterestsReplyPacket airp = (AvatarInterestsReplyPacket)packet;
                Avatar.Interests interests = new Avatar.Interests();

                interests.WantToMask = airp.PropertiesData.WantToMask;
View Full Code Here

        /// <param name="e">The EventArgs object containing the packet data</param>
        protected void AvatarGroupsReplyHandler(Object sender, PacketReceivedEventArgs e) throws UnsupportedEncodingException
        {
            if (onAvatarGroupsReply != null)
            {
                Packet packet = e.getPacket();
                AvatarGroupsReplyPacket groups = (AvatarGroupsReplyPacket)packet;
                List<AvatarGroup> avatarGroups = new ArrayList<AvatarGroup>(groups.GroupData.length);

                for (int i = 0; i < groups.GroupData.length; i++)
                {
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.