From 5343605c497fbed59951090b2d95ec17f1ecd0c1 Mon Sep 17 00:00:00 2001 From: Ludovic Chenut Date: Wed, 6 Mar 2024 16:05:53 +0100 Subject: [PATCH] update header year --- webrtc/datachannel.nim | 8 ++++++-- webrtc/dtls/dtls.nim | 2 +- webrtc/dtls/utils.nim | 2 +- webrtc/sctp.nim | 2 +- webrtc/stun/stun.nim | 2 +- webrtc/stun/stun_attributes.nim | 2 +- webrtc/stun/stun_connection.nim | 2 +- webrtc/udp_connection.nim | 2 +- webrtc/webrtc.nim | 2 +- 9 files changed, 14 insertions(+), 10 deletions(-) diff --git a/webrtc/datachannel.nim b/webrtc/datachannel.nim index 56fba3a..5439cef 100644 --- a/webrtc/datachannel.nim +++ b/webrtc/datachannel.nim @@ -1,5 +1,5 @@ # Nim-WebRTC -# Copyright (c) 2023 Status Research & Development GmbH +# Copyright (c) 2024 Status Research & Development GmbH # Licensed under either of # * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) # * MIT license ([LICENSE-MIT](LICENSE-MIT)) @@ -20,6 +20,10 @@ export binary_serialization logScope: topics = "webrtc datachannel" +# Implementation of the DataChannel protocol, mostly following +# https://www.rfc-editor.org/rfc/rfc8831.html and +# https://www.rfc-editor.org/rfc/rfc8832.html + type DataChannelProtocolIds* {.size: 4.} = enum WebRtcDcep = 50 @@ -201,7 +205,7 @@ proc readLoop(conn: DataChannelConnection) {.async.} = try: while true: let message = await conn.conn.read() - # TODO: might be necessary to check the others protocolId at some point + # TODO: check the protocolId if message.params.protocolId == uint32(WebRtcDcep): #TODO should we really await? await conn.handleControl(message) diff --git a/webrtc/dtls/dtls.nim b/webrtc/dtls/dtls.nim index 5d858fb..b09a888 100644 --- a/webrtc/dtls/dtls.nim +++ b/webrtc/dtls/dtls.nim @@ -1,5 +1,5 @@ # Nim-WebRTC -# Copyright (c) 2023 Status Research & Development GmbH +# Copyright (c) 2024 Status Research & Development GmbH # Licensed under either of # * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) # * MIT license ([LICENSE-MIT](LICENSE-MIT)) diff --git a/webrtc/dtls/utils.nim b/webrtc/dtls/utils.nim index ebecd40..06fb990 100644 --- a/webrtc/dtls/utils.nim +++ b/webrtc/dtls/utils.nim @@ -1,5 +1,5 @@ # Nim-WebRTC -# Copyright (c) 2023 Status Research & Development GmbH +# Copyright (c) 2024 Status Research & Development GmbH # Licensed under either of # * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) # * MIT license ([LICENSE-MIT](LICENSE-MIT)) diff --git a/webrtc/sctp.nim b/webrtc/sctp.nim index 4d8afde..313f2a7 100644 --- a/webrtc/sctp.nim +++ b/webrtc/sctp.nim @@ -1,5 +1,5 @@ # Nim-WebRTC -# Copyright (c) 2022 Status Research & Development GmbH +# Copyright (c) 2024 Status Research & Development GmbH # Licensed under either of # * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) # * MIT license ([LICENSE-MIT](LICENSE-MIT)) diff --git a/webrtc/stun/stun.nim b/webrtc/stun/stun.nim index fdd685f..3248d53 100644 --- a/webrtc/stun/stun.nim +++ b/webrtc/stun/stun.nim @@ -1,5 +1,5 @@ # Nim-WebRTC -# Copyright (c) 2023 Status Research & Development GmbH +# Copyright (c) 2024 Status Research & Development GmbH # Licensed under either of # * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) # * MIT license ([LICENSE-MIT](LICENSE-MIT)) diff --git a/webrtc/stun/stun_attributes.nim b/webrtc/stun/stun_attributes.nim index bd6179f..11e3c0e 100644 --- a/webrtc/stun/stun_attributes.nim +++ b/webrtc/stun/stun_attributes.nim @@ -1,5 +1,5 @@ # Nim-WebRTC -# Copyright (c) 2023 Status Research & Development GmbH +# Copyright (c) 2024 Status Research & Development GmbH # Licensed under either of # * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) # * MIT license ([LICENSE-MIT](LICENSE-MIT)) diff --git a/webrtc/stun/stun_connection.nim b/webrtc/stun/stun_connection.nim index 68d1105..a7289ec 100644 --- a/webrtc/stun/stun_connection.nim +++ b/webrtc/stun/stun_connection.nim @@ -1,5 +1,5 @@ # Nim-WebRTC -# Copyright (c) 2023 Status Research & Development GmbH +# Copyright (c) 2024 Status Research & Development GmbH # Licensed under either of # * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) # * MIT license ([LICENSE-MIT](LICENSE-MIT)) diff --git a/webrtc/udp_connection.nim b/webrtc/udp_connection.nim index 0f0e2e6..a096231 100644 --- a/webrtc/udp_connection.nim +++ b/webrtc/udp_connection.nim @@ -1,5 +1,5 @@ # Nim-WebRTC -# Copyright (c) 2023 Status Research & Development GmbH +# Copyright (c) 2024 Status Research & Development GmbH # Licensed under either of # * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) # * MIT license ([LICENSE-MIT](LICENSE-MIT)) diff --git a/webrtc/webrtc.nim b/webrtc/webrtc.nim index d93a8b8..57b1d2f 100644 --- a/webrtc/webrtc.nim +++ b/webrtc/webrtc.nim @@ -1,5 +1,5 @@ # Nim-WebRTC -# Copyright (c) 2023 Status Research & Development GmbH +# Copyright (c) 2024 Status Research & Development GmbH # Licensed under either of # * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) # * MIT license ([LICENSE-MIT](LICENSE-MIT))