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 GroupMembersHandler(Object sender, PacketReceivedEventArgs e) throws UnsupportedEncodingException
        {
            Packet packet = e.getPacket();
            GroupMembersReplyPacket members = (GroupMembersReplyPacket)packet;
            Map<UUID, GroupMember> groupMemberCache = null;

            synchronized (GroupMembersRequests)
            {
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 GroupRoleDataReplyHandler(Object sender, PacketReceivedEventArgs e) throws UnsupportedEncodingException
        {
            Packet packet = e.getPacket();
            GroupRoleDataReplyPacket roles = (GroupRoleDataReplyPacket)packet;
            Map<UUID, GroupRole> groupRoleCache = null;

            synchronized (GroupRolesRequests)
            {
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 GroupRoleMembersReplyHandler(Object sender, PacketReceivedEventArgs e)
        {
            Packet packet = e.getPacket();
            GroupRoleMembersReplyPacket members = (GroupRoleMembersReplyPacket)packet;
            List<KeyValuePair<UUID, UUID>> groupRoleMemberCache = null;

            try
            {
View Full Code Here

        /// <param name="e">The EventArgs object containing the packet data</param>
        protected void GroupAccountSummaryReplyHandler(Object sender, PacketReceivedEventArgs e) throws UnsupportedEncodingException
        {
            if (onGroupAccountSummaryReply != null)
            {
                Packet packet = e.getPacket();
                GroupAccountSummaryReplyPacket summary = (GroupAccountSummaryReplyPacket)packet;
                GroupAccountSummary account = new GroupAccountSummary();

                account.Balance = summary.MoneyData.Balance;
                account.CurrentInterval = summary.MoneyData.CurrentInterval;
View Full Code Here

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

                String message = Utils.bytesWithTrailingNullByteToString(reply.ReplyData.Message);

                onGroupCreatedReply.raiseEvent(new GroupCreatedReplyEventArgs(reply.ReplyData.GroupID, reply.ReplyData.Success, message));
View Full Code Here

        /// <param name="e">The EventArgs object containing the packet data</param>
        protected void JoinGroupReplyHandler(Object sender, PacketReceivedEventArgs e)
        {
            if (onGroupJoinedReply != null)
            {
                Packet packet = e.getPacket();
                JoinGroupReplyPacket reply = (JoinGroupReplyPacket)packet;

                onGroupJoinedReply.raiseEvent(new GroupOperationEventArgs(reply.GroupData.GroupID, reply.GroupData.Success));
            }
        }
View Full Code Here

        /// <param name="e">The EventArgs object containing the packet data</param>
        protected void LeaveGroupReplyHandler(Object sender, PacketReceivedEventArgs e)
        {
            if (onGroupLeaveReply != null)
            {
                Packet packet = e.getPacket();
                LeaveGroupReplyPacket reply = (LeaveGroupReplyPacket)packet;

                onGroupLeaveReply.raiseEvent(new GroupOperationEventArgs(reply.GroupData.GroupID, reply.GroupData.Success));
            }
        }
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>
        private void UUIDGroupNameReplyHandler(Object sender, PacketReceivedEventArgs e) throws UnsupportedEncodingException
        {
            Packet packet = e.getPacket();
            UUIDGroupNameReplyPacket reply = (UUIDGroupNameReplyPacket)packet;
            UUIDGroupNameReplyPacket.UUIDNameBlockBlock[] blocks = reply.UUIDNameBlock;

            Map<UUID, String> groupNames = new HashMap<UUID, String>();
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 EjectGroupMemberReplyHandler(Object sender, PacketReceivedEventArgs e)
        {
            Packet packet = e.getPacket();
            EjectGroupMemberReplyPacket reply = (EjectGroupMemberReplyPacket)packet;

            // TODO: On Success remove the member from the cache(s)

            if (onGroupMemberEjected != null)
View Full Code Here

  /// <param name="e">The EventArgs object containing the packet data</param>
  protected void DirGroupsReplyHandler(Object sender, PacketReceivedEventArgs e) throws UnsupportedEncodingException
  {
    if (OnDirGroups != null)
    {
      Packet packet = e.getPacket();
      DirGroupsReplyPacket groupsReply = (DirGroupsReplyPacket)packet;
      List<GroupSearchData> matches = new ArrayList<GroupSearchData>(groupsReply.QueryReplies.length);
      for (DirGroupsReplyPacket.QueryRepliesBlock reply : groupsReply.QueryReplies)
      {
        GroupSearchData groupsData = new GroupSearchData();
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.