W3C home > Mailing lists > Public > public-webrtc@w3.org > June 2013

Re: Is DataChannel label unique?

From: <piranna@gmail.com>
Date: Wed, 26 Jun 2013 13:15:18 +0200
Message-ID: <CAKfGGh2NBrNg3Zj9ucbTs_TjtbcrQcKzMFSAFqGN2OyY2vkEsw@mail.gmail.com>
To: Adam Bergkvist <adam.bergkvist@ericsson.com>
Cc: Max Jonas Werner <public-webrtc-w3@makk.es>, public-webrtc <public-webrtc@w3.org>
Ok, I see. It was the purposse I was using it, only didn't know it was just
its function and thought it had some more strict endorsements... :-P
El 26/06/2013 12:54, "Adam Bergkvist" <adam.bergkvist@ericsson.com>
escribió:

> On 2013-06-25 23:04, piranna@gmail.com wrote:
>
>>  > As far as I understand the spec and Mozilla's implementation the label
>>  > has no semantics for the browser. You can set it to any value you like
>>  > and it's your responsibility as developer to make the DCs
>>  > distinguishable from each other.
>>  >
>> So, they are there just for application dependent purposses, isn't it?
>>
>
> The original idea was to be able to pair up DataChannel objects created
> with createDataChannel() on one side, with the corresponding channels on
> the other side (dispatched with the datachannel event). Since there was no
> guarantee that the dispatching on the b-side were to happen in the same
> order as the createDataChannel() calls on the a-side, the label was
> required.
>
> /Adam
>
Received on Wednesday, 26 June 2013 11:15:46 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:33 UTC