DCCast Host
Resource Group ¶
Send ¶
Start a SendingPOST/send/{transferId}{?dst,port,rate}
A send request will start a NORM sender and send data from its own IP address and port number port to IP address dst and port number port.
Example URI
- transferId
number
(required) Example: 0An unique integer identifier of transfer seesion with a range [0, 100000].
- dst
string
(required) Example: 127.0.0.1The desination IP address as a string.
- port
number
(required) Example: 1000An integer with a range [1000, 9999]. The port number that will be used as both source port and destination port.
- rate
number
(required) Example: 500An integer with a range[1, max(double)] that indicate how many bits the sender should send in 1 second.
200
Headers
Content-Type: application/json
Body
{
"error": "Hello, world!"
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"error": {
"type": [
"string",
"null"
],
"description": "Must be null."
}
}
}
400
Headers
Content-Type: application/json
Body
{
"error": "Hello, world!"
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Reason of the error."
}
}
}
Receive ¶
Start a ReceivingPOST/receive/{transferId}{?src,port}
A receive request will start a NORM receiver and wait for data from the IP address src and port number port.
Example URI
- transferId
number
(required) Example: 0An unique integer identifier of transfer seesion with a range [0, 100000].
- src
string
(optional) Example: 127.0.0.1The IP address of sender. Currently this parameter will be ignored and “0.0.0.0” will be used instead.
- port
number
(required) Example: 1000An integer with a range [1000, 9999]. The port number that will be used as both source port and destination port.
200
Headers
Content-Type: application/json
Body
{
"error": "Hello, world!"
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"error": {
"type": [
"string",
"null"
],
"description": "Must be null."
}
}
}
400
Headers
Content-Type: application/json
Body
{
"error": "Hello, world!"
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Reason of the error."
}
}
}
Update Rate ¶
Update the Rate of a SenderPOST/updateRate/{transferId}{?rate}
An update rate request will update rate limit of the sender with id transferId.
Example URI
- transferId
number
(required) Example: 0An unique integer identifier of transfer session with a range [0, 100000].
- rate
number
(required) Example: 500An integer with a range[1, max(double)] that indicate how many bits the sender should send in 1 second.
200
Headers
Content-Type: application/json
Body
{
"error": "Hello, world!"
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"error": {
"type": [
"string",
"null"
],
"description": "Must be null."
}
}
}
400
Headers
Content-Type: application/json
Body
{
"error": "Hello, world!"
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Reason of the error."
}
}
}
Progress ¶
Check ProgressGET/progress/{transferId}
Return how many bytes a sender/receiver has processed.
Example URI
- transferId
number
(required) Example: 0An unique integer identifier of transfer session with a range [0, 100000].
200
Headers
Content-Type: application/json
Body
{
"error": "Hello, world!",
"type": "Hello, world!",
"progress": 1
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"error": {
"type": [
"string",
"null"
],
"description": "Must be null."
},
"type": {
"type": "string",
"description": "Either a \"receiver\" or a \"sender\"."
},
"progress": {
"type": "number",
"description": "Bytes that have been sent/received."
}
}
}
400
Headers
Content-Type: application/json
Body
{
"error": "Hello, world!"
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"error": {
"type": [
"string",
"null"
],
"description": "Reason of the error."
}
}
}
Terminate ¶
Forece a TerminationPOST/terminate/{transferId}
Force a sender/receiver to stop.
Example URI
- transferId
number
(required) Example: 0An unique integer identifier of transfer session with a range [0, 100000].
200
Headers
Content-Type: application/json
Body
{
"error": "Hello, world!"
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"error": {
"type": [
"string",
"null"
],
"description": "Must be null."
}
}
}
400
Headers
Content-Type: application/json
Body
{
"error": "Hello, world!"
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Reason of the error."
}
}
}
Clean ¶
Clean Any TransmissionPOST/cleanAll
Force all senders/receivers to stop.
Example URI
200
Headers
Content-Type: application/json
Body
{
"error": "Hello, world!"
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"error": {
"type": [
"string",
"null"
],
"description": "Must be null."
}
}
}
400
Headers
Content-Type: application/json
Body
{
"error": "Hello, world!"
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Reason of the error."
}
}
}
Active Transfers ¶
Get the List of Active TransferGET/activeTransfer
Get the list of all senders/receivers in the host.
Example URI
200
Headers
Content-Type: application/json
Body
{
"error": "Hello, world!",
"senders": [],
"receivers": []
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"error": {
"type": [
"string",
"null"
],
"description": "Must be null."
},
"senders": {
"description": "A list of sender's transfer ID."
},
"receivers": {
"description": "A list of receiver's transfer ID."
}
}
}
400
Headers
Content-Type: application/json
Body
{
"error": "Hello, world!"
}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Reason of the error."
}
}
}