Tracking Service
# Introduction
The "tracker" server keeps track of where file copies reside on peer machines, which ones are available at time of the client request, and helps coordinate efficient transmission and reassembly of the copied file. Clients that have already begun downloading a file communicate with the tracker periodically to negotiate faster file transfer with new peers, and provide network performance statistics; however, after the initial peer-to-peer file download is started, peer-to-peer communication can continue without the connection to a tracker.
All data cannot be shared among different zone.
# Sign Up
Please click https://oms.cdnbye.com/ (opens new window) or https://swarmcloud.net/oms/ (opens new window)
# Select a Zone
# HongKong
Select zone HongKong when sign up
# SDK Config for HongKong Tracker
# Web SDK
p2pConfig: {
announceLocation: 'hk',
}
// Pass p2pConfig to your P2PEngine ...
# Android SDK
val config = P2pConfig.Builder()
.announceLocation(AnnounceLocation.HongKong)
.build()
P2pEngine.init(ctx, YOUR_TOKEN, config)
# iOS SDK
let config = SWCP2pConfig.defaultConfiguration()
config.announceLocation = SWCAnnounceLocation.hongkong;
SWCP2pEngine.sharedInstance().start(token: YOUR_TOKEN, p2pConfig: config)
# Flutter SDK
SwarmCloud.init(
YOUR_TOKEN,
config: P2pConfig(
announceLocation: AnnounceLocation.HongKong,
)
);
# USA
Select zone USA when sign up
# SDK Config for USA Tracker
# Web SDK
p2pConfig: {
announceLocation: 'us',
}
// Pass p2pConfig to your P2PEngine ...
# Android SDK
val config = P2pConfig.Builder()
.announceLocation(AnnounceLocation.USA)
.build()
P2pEngine.init(ctx, YOUR_TOKEN, config)
# iOS SDK
let config = SWCP2pConfig.defaultConfiguration()
config.announceLocation = SWCAnnounceLocation.USA
SWCP2pEngine.sharedInstance().start(token: YOUR_TOKEN, p2pConfig: config)
# Flutter SDK
SwarmCloud.init(
YOUR_TOKEN,
config: P2pConfig(
announceLocation: AnnounceLocation.USA,
)
);
# China
Select zone China when sign up
If using Chinese tracker, there's no need to set announce explicitly.