OpenSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
OpenSim.Region.CoreModules.Agent.AssetTransaction.AssetXferUploader Class Reference

Public Member Functions

 AssetXferUploader (AgentAssetTransactions transactions, Scene scene, UUID transactionID, bool dumpAssetToFile)
 AssetXferUploader constructor More...
 
bool HandleXferPacket (ulong xferID, uint packetID, byte[] data)
 Process transfer data received from the client. More...
 
void StartUpload (IClientAPI remoteClient, UUID assetID, UUID transaction, sbyte type, byte[] data, bool storeLocal, bool tempFile)
 Start asset transfer from the client More...
 
void RequestCreateInventoryItem (IClientAPI remoteClient, UUID folderID, uint callbackID, string description, string name, sbyte invType, sbyte type, byte wearableType, uint nextOwnerMask)
 
void RequestUpdateInventoryItem (IClientAPI remoteClient, InventoryItemBase item)
 
void RequestUpdateTaskInventoryItem (IClientAPI remoteClient, TaskInventoryItem taskItem)
 
AssetBase GetAssetData ()
 Get the asset data uploaded in this transfer. More...
 
void SetOldData (byte[] d)
 

Public Attributes

ulong XferID
 

Protected Member Functions

void RequestStartXfer ()
 
void SendCompleteMessage ()
 

Detailed Description

Definition at line 42 of file AssetXferUploader.cs.

Constructor & Destructor Documentation

OpenSim.Region.CoreModules.Agent.AssetTransaction.AssetXferUploader.AssetXferUploader ( AgentAssetTransactions  transactions,
Scene  scene,
UUID  transactionID,
bool  dumpAssetToFile 
)
inline

AssetXferUploader constructor

Parameters
transactions/param>
Parameters
scene
transactionID
dumpAssetToFileIf true then when the asset is uploaded it is dumped to a file with the format String.Format("{6}_{7}_{0:d2}{1:d2}{2:d2}_{3:d2}{4:d2}{5:d2}.dat", now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, m_asset.Name, m_asset.Type); for debugging purposes.

Definition at line 125 of file AssetXferUploader.cs.

Member Function Documentation

AssetBase OpenSim.Region.CoreModules.Agent.AssetTransaction.AssetXferUploader.GetAssetData ( )
inline

Get the asset data uploaded in this transfer.

Returns
null if the asset has not finished uploading

Definition at line 575 of file AssetXferUploader.cs.

bool OpenSim.Region.CoreModules.Agent.AssetTransaction.AssetXferUploader.HandleXferPacket ( ulong  xferID,
uint  packetID,
byte[]  data 
)
inline

Process transfer data received from the client.

Parameters
xferID
packetID
data
Returns
True if the transfer is complete, false otherwise or if the xferID was not valid

Definition at line 143 of file AssetXferUploader.cs.

void OpenSim.Region.CoreModules.Agent.AssetTransaction.AssetXferUploader.RequestCreateInventoryItem ( IClientAPI  remoteClient,
UUID  folderID,
uint  callbackID,
string  description,
string  name,
sbyte  invType,
sbyte  type,
byte  wearableType,
uint  nextOwnerMask 
)
inline

Definition at line 310 of file AssetXferUploader.cs.

void OpenSim.Region.CoreModules.Agent.AssetTransaction.AssetXferUploader.RequestStartXfer ( )
inlineprotected

Definition at line 242 of file AssetXferUploader.cs.

void OpenSim.Region.CoreModules.Agent.AssetTransaction.AssetXferUploader.RequestUpdateInventoryItem ( IClientAPI  remoteClient,
InventoryItemBase  item 
)
inline

Definition at line 341 of file AssetXferUploader.cs.

void OpenSim.Region.CoreModules.Agent.AssetTransaction.AssetXferUploader.RequestUpdateTaskInventoryItem ( IClientAPI  remoteClient,
TaskInventoryItem  taskItem 
)
inline

Definition at line 388 of file AssetXferUploader.cs.

void OpenSim.Region.CoreModules.Agent.AssetTransaction.AssetXferUploader.SendCompleteMessage ( )
inlineprotected

Definition at line 253 of file AssetXferUploader.cs.

void OpenSim.Region.CoreModules.Agent.AssetTransaction.AssetXferUploader.SetOldData ( byte[]  d)
inline

Definition at line 586 of file AssetXferUploader.cs.

void OpenSim.Region.CoreModules.Agent.AssetTransaction.AssetXferUploader.StartUpload ( IClientAPI  remoteClient,
UUID  assetID,
UUID  transaction,
sbyte  type,
byte[]  data,
bool  storeLocal,
bool  tempFile 
)
inline

Start asset transfer from the client

Parameters
remoteClient
assetID
transaction
type
dataOptional data. If present then the asset is created immediately with this data rather than requesting an upload from the client. The data must be longer than 2 bytes.
storeLocal
tempFile

Definition at line 199 of file AssetXferUploader.cs.

Member Data Documentation

ulong OpenSim.Region.CoreModules.Agent.AssetTransaction.AssetXferUploader.XferID

Definition at line 109 of file AssetXferUploader.cs.


The documentation for this class was generated from the following file: