Package com.ngt.jopenmetaverse.shared.sim.events.asm

Examples of com.ngt.jopenmetaverse.shared.sim.events.asm.AssetUpload


    /// <returns>The transaction ID of this transfer</returns>
    public UploadRequestResult RequestUpload(AssetType type, byte[] data, boolean storeLocal,
        UUID transactionID) throws Exception
    {
      UploadRequestResult result = new UploadRequestResult();
        AssetUpload upload = new AssetUpload();
        upload.AssetData = data;
        upload.AssetType = type;
        result.setAgentID(UUID.Combine(transactionID, Client.self.getSecureSessionID()));
        upload.AssetID = result.getAgentID();
        upload.Size = data.length;
View Full Code Here


    {
        if (PendingUpload == null)
            JLogger.warn("Received a RequestXferPacket for an unknown asset upload");
        else
        {
            AssetUpload upload = PendingUpload;
            PendingUpload = null;
            WaitingForUploadConfirm = false;
            RequestXferPacket request = (RequestXferPacket)e.getPacket();

            upload.XferID = request.XferID.ID;
View Full Code Here

        // 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)
        {
            upload = (AssetUpload)transfer;
View Full Code Here

            {
                for (Entry<UUID, Transfer> transfer : Transfers.entrySet())
                {
                    if (transfer.getValue() instanceof AssetUpload)
                    {
                        AssetUpload upload = (AssetUpload)transfer.getValue();

                        if ((upload).AssetID.equals(complete.AssetBlock.UUID))
                        {
                            found = true;
                            foundTransfer = transfer;
View Full Code Here

TOP

Related Classes of com.ngt.jopenmetaverse.shared.sim.events.asm.AssetUpload

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.