com.xunlei.downloadlib.parameter.PeerResourceParam Java Examples
The following examples show how to use
com.xunlei.downloadlib.parameter.PeerResourceParam.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: XLDownloadManager.java From TVRemoteIME with GNU General Public License v2.0 | 5 votes |
public int addPeerResource(long j, PeerResourceParam peerResourceParam) { int i = 9900; if (peerResourceParam == null || !peerResourceParam.checkMemberVar()) { return 9900; } increRefCount(); if (mDownloadManagerState == XLManagerStatus.MANAGER_RUNNING && this.mLoader != null) { i = this.mLoader.addPeerResource(j, peerResourceParam.mPeerId, peerResourceParam.mUserId, peerResourceParam.mJmpKey, peerResourceParam.mVipCdnAuth, peerResourceParam.mInternalIp, peerResourceParam.mTcpPort, peerResourceParam.mUdpPort, peerResourceParam.mResLevel, peerResourceParam.mResPriority, peerResourceParam.mCapabilityFlag, peerResourceParam.mResType); } decreRefCount(); return i; }
Example #2
Source File: XLDownloadManager.java From BtPlayer with Apache License 2.0 | 5 votes |
public int addPeerResource(long j, PeerResourceParam peerResourceParam) { int i = 9900; if (peerResourceParam == null || !peerResourceParam.checkMemberVar()) { return 9900; } increRefCount(); if (mDownloadManagerState == XLManagerStatus.MANAGER_RUNNING && this.mLoader != null) { i = this.mLoader.addPeerResource(j, peerResourceParam.mPeerId, peerResourceParam.mUserId, peerResourceParam.mJmpKey, peerResourceParam.mVipCdnAuth, peerResourceParam.mInternalIp, peerResourceParam.mTcpPort, peerResourceParam.mUdpPort, peerResourceParam.mResLevel, peerResourceParam.mResPriority, peerResourceParam.mCapabilityFlag, peerResourceParam.mResType); } decreRefCount(); return i; }
Example #3
Source File: XLDownloadManager.java From AndroidDownload with Apache License 2.0 | 5 votes |
public int addPeerResource(long j, PeerResourceParam peerResourceParam) { int i = 9900; if (peerResourceParam == null || !peerResourceParam.checkMemberVar()) { return 9900; } increRefCount(); if (mDownloadManagerState == XLManagerStatus.MANAGER_RUNNING && this.mLoader != null) { i = this.mLoader.addPeerResource(j, peerResourceParam.mPeerId, peerResourceParam.mUserId, peerResourceParam.mJmpKey, peerResourceParam.mVipCdnAuth, peerResourceParam.mInternalIp, peerResourceParam.mTcpPort, peerResourceParam.mUdpPort, peerResourceParam.mResLevel, peerResourceParam.mResPriority, peerResourceParam.mCapabilityFlag, peerResourceParam.mResType); } decreRefCount(); return i; }
Example #4
Source File: XLDownloadManager.java From MiniThunder with Apache License 2.0 | 5 votes |
public int addPeerResource(long j, PeerResourceParam peerResourceParam) { int i = 9900; if (peerResourceParam == null || !peerResourceParam.checkMemberVar()) { return 9900; } increRefCount(); if (mDownloadManagerState == XLManagerStatus.MANAGER_RUNNING && this.mLoader != null) { i = this.mLoader.addPeerResource(j, peerResourceParam.mPeerId, peerResourceParam.mUserId, peerResourceParam.mJmpKey, peerResourceParam.mVipCdnAuth, peerResourceParam.mInternalIp, peerResourceParam.mTcpPort, peerResourceParam.mUdpPort, peerResourceParam.mResLevel, peerResourceParam.mResPriority, peerResourceParam.mCapabilityFlag, peerResourceParam.mResType); } decreRefCount(); return i; }