Aspera.Transfer.Session
namespace Aspera.Transfer
{
public abstract class Session
{
protected string msgBuffer;
protected bool firstTime;
protected bool debugEnabled;
protected bool persistent;
protected bool persistentSessionLocked;
protected int transfersAttempted;
protected int transfersFailed;
protected int transfersPassed;
protected int transfersSkipped;
protected int sourcePathsScanAttempted;
protected int sourcePathsScanFailed;
protected int sourcePathsScanIrregular;
protected int sourcePathsScanExcluded;
protected JObject ;
protected int pmtu;
protected Session(JobOrder order, string jobId, bool debug);
protected Session(bool debug);
public abstract void handleAscpCrash();
public virtual void setRate(int targetRate, int minimumRate, Policy policy);
public void addListener(TransferListener listener);
public void removeListener(TransferListener listener);
public void close();
public virtual void cancel();
public virtual void stop();
public virtual void terminate();
public virtual void stopWhenIdle();
public bool isFinished();
public string getId();
public Guid getXferId();
public int getXferRetry();
public int getProcessIndex();
public int getNbProcesses();
public long getTotalTransferredBytes();
public string getSessionId();
public string getCookie();
protected virtual bool sendMgmtMessage(string msg);
public ulong getBandwidthCapKbps();
public string getErrDescription();
public int getErrCode();
public string getHost();
public ulong getMinumumRateKbps();
public Policy getPolicy();
public int getRttMs();
public int getStartTime();
public SessionState getState();
public ulong getTargetRateKbps();
public string getToken();
public long getTotalElapsedMs();
public ulong getTotalLostBytes();
public ulong getTotalWrittenBytes();
public string getUser();
public uint getUdpPort();
public bool isRemote();
public bool isUpload();
public void setCookie(string userCookie);
public void setUserStr(string userStr);
public void addSource(string sourcePath, string destPath, long startByte, long endByte);
public void setPersistent(bool persistent);
public bool getPersistentSessionLocked();
}
}