Package com.ngt.jopenmetaverse.shared.types

Examples of com.ngt.jopenmetaverse.shared.types.UUID


  {
    DirFindQueryPacket find = new DirFindQueryPacket();
    find.AgentData.AgentID = Client.self.getAgentID();
    find.AgentData.SessionID = Client.self.getSessionID();

    UUID queryID = UUID.Random();

    find.QueryData.QueryID = queryID;
    find.QueryData.QueryText = Utils.stringToBytesWithTrailingNullByte(eventDay + "|" + (int)category.getIndex() + "|" + searchText);
    find.QueryData.QueryFlags = (long)DirFindFlags.getIndex(queryFlags);
    find.QueryData.QueryStart = (int)queryStart;
View Full Code Here


      evinfo.Name = Utils.bytesWithTrailingNullByteToString(eventReply.EventData.Name);
      evinfo.Desc = Utils.bytesWithTrailingNullByteToString(eventReply.EventData.Desc);
      evinfo.Amount = eventReply.EventData.Amount;
      evinfo.Category = EventCategories.get((int)Utils.bytesToUInt(eventReply.EventData.Category));
      evinfo.Cover = eventReply.EventData.Cover;
      evinfo.Creator = new UUID(Utils.bytesWithTrailingNullByteToString(eventReply.EventData.Creator));
      evinfo.Date = Utils.bytesWithTrailingNullByteToString(eventReply.EventData.Date);
      evinfo.DateUTC = eventReply.EventData.DateUTC;
      evinfo.Duration = eventReply.EventData.Duration;
      evinfo.Flags = EventFlags.get((int)eventReply.EventData.EventFlags);
      evinfo.SimName = Utils.bytesWithTrailingNullByteToString(eventReply.EventData.SimName);
View Full Code Here

      UUID transactionID;
      UUID agentID;
     
    public UploadRequestResult() {
      super();
      transactionID = new UUID();
      agentID = new UUID();
    }
View Full Code Here

  /// the reply packets arrived ordered, a response with less than 16 entries would indicate all results have been received
  /// </remarks>
  public UUID StartClassifiedSearch(String searchText, ClassifiedCategories category, ClassifiedQueryFlags queryFlags)
  {
    DirClassifiedQueryPacket query = new DirClassifiedQueryPacket();
    UUID queryID = UUID.Random();

    query.AgentData.AgentID = Client.self.getAgentID();
    query.AgentData.SessionID = Client.self.getSessionID();

    query.QueryData.Category = (long)category.getIndex();
View Full Code Here

    /// (4) if true, otherwise Unknown (0) is used</param>
    /// <returns></returns>
    public BigInteger RequestAssetXfer(String filename, boolean deleteOnCompletion, boolean useBigPackets, UUID vFileID, AssetType vFileType,
        boolean fromCache)
    {
        UUID uuid = UUID.Random();
        BigInteger id = uuid.GetULong();

        XferDownload transfer = new XferDownload();
        transfer.XferID = id;
        transfer.ID = new UUID(id.longValue()); // Our dictionary tracks transfers with UUIDs, so convert the ulong back
        transfer.Filename = filename;
        transfer.VFileID = vFileID;
        transfer.AssetType = vFileType;

        // Add this transfer to the dictionary
View Full Code Here

          final MethodDelegate<Void, BakedTextureUploadedCallbackArgs> uploadCallback = callback;
         
          threadPool.execute(new Runnable(){
        public void run()
        {
                  final UUID transactionID = UUID.Random();
                  final AutoResetEvent uploadEvent = new AutoResetEvent(false);
                  EventObserver<AssetUploadEventArgs> udpCallback = new EventObserver<AssetUploadEventArgs>()
                      {
              @Override
              public void handleEvent(Observable sender,
View Full Code Here

            {
                download.AssetData = new byte[download.Size];

                if (download.Source == SourceType.Asset && info.TransferInfo.Params.length == 20)
                {
                    download.AssetID = new UUID(info.TransferInfo.Params, 0);
                    download.AssetType = AssetType.get((byte)info.TransferInfo.Params[16]);

                    //Client.DebugLog(String.Format("TransferInfo packet received. AssetID: {0} Type: {1}",
                    //    transfer.AssetID, type));
                }
                else if (download.Source == SourceType.SimInventoryItem && info.TransferInfo.Params.length == 100)
                {
                    // TODO: Can we use these?
                    //UUID agentID = new UUID(info.TransferInfo.Params, 0);
                    //UUID sessionID = new UUID(info.TransferInfo.Params, 16);
                    //UUID ownerID = new UUID(info.TransferInfo.Params, 32);
                    //UUID taskID = new UUID(info.TransferInfo.Params, 48);
                    //UUID itemID = new UUID(info.TransferInfo.Params, 64);
                    download.AssetID = new UUID(info.TransferInfo.Params, 80);
                    download.AssetType = AssetType.get((byte)info.TransferInfo.Params[96]);

                    //Client.DebugLog(String.Format("TransferInfo packet received. AgentID: {0} SessionID: {1} " +
                    //    "OwnerID: {2} TaskID: {3} ItemID: {4} AssetID: {5} Type: {6}", agentID, sessionID,
                    //    ownerID, taskID, itemID, transfer.AssetID, type));
View Full Code Here

            RequestXferPacket request = (RequestXferPacket)e.getPacket();

            upload.XferID = request.XferID.ID;
            upload.Type = AssetType.get((byte)request.XferID.VFileType);

            UUID transferID = new UUID(upload.XferID.longValue());
            Transfers.put(transferID,  upload);

            // Send the first packet containing actual asset data
            SendNextUploadPacket(upload);
        }
View Full Code Here

    {
        ConfirmXferPacketPacket confirm = (ConfirmXferPacketPacket)e.getPacket();

        // Building a new UUID every time an ACK is received for an upload is a horrible
        // thing, but this whole Xfer system is horrible
        UUID transferID = new UUID(confirm.XferID.ID.longValue());
        Transfer transfer;
        AssetUpload upload = null;

        if ((transfer = Transfers.get(transferID))!=null)
        {
View Full Code Here

    protected void SendXferPacketHandler(Object sender, PacketReceivedEventArgs e)
    {
        SendXferPacketPacket xfer = (SendXferPacketPacket)e.getPacket();

        // Lame ulong to UUID conversion, please go away Xfer system
        UUID transferID = new UUID(xfer.XferID.ID.longValue());
        Transfer transfer;
        XferDownload download = null;

        if ((transfer = Transfers.get(transferID))!=null)
        {
View Full Code Here

TOP

Related Classes of com.ngt.jopenmetaverse.shared.types.UUID

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.