snapshot of https://github.com/pion/webrtc.git (main, 2026-09-15; blobs > 131072B omitted)
Some checks failed
REUSE Compliance Check / lint (push) Failing after 0s
Browser E2E / Test (push) Failing after 3s
Test / test (1.24) (push) Failing after 0s
Test / test-i386 (1.25) (push) Failing after 0s
Test / test-i386 (1.24) (push) Failing after 0s
Test / test-windows (1.25) (push) Failing after 0s
Test / test-windows (1.24) (push) Failing after 0s
Test / test (1.25) (push) Failing after 0s
Examples Tests / Test (push) Failing after 3s
Test / test-macos (1.25) (push) Failing after 0s
Test / test-macos (1.24) (push) Failing after 0s
Go mod tidy / tidy (push) Failing after 0s
Test / test-wasm (push) Failing after 0s
CodeQL / analyze (push) Failing after 1s
Fuzz / fuzz (push) Failing after 0s
Some checks failed
REUSE Compliance Check / lint (push) Failing after 0s
Browser E2E / Test (push) Failing after 3s
Test / test (1.24) (push) Failing after 0s
Test / test-i386 (1.25) (push) Failing after 0s
Test / test-i386 (1.24) (push) Failing after 0s
Test / test-windows (1.25) (push) Failing after 0s
Test / test-windows (1.24) (push) Failing after 0s
Test / test (1.25) (push) Failing after 0s
Examples Tests / Test (push) Failing after 3s
Test / test-macos (1.25) (push) Failing after 0s
Test / test-macos (1.24) (push) Failing after 0s
Go mod tidy / tidy (push) Failing after 0s
Test / test-wasm (push) Failing after 0s
CodeQL / analyze (push) Failing after 1s
Fuzz / fuzz (push) Failing after 0s
This commit is contained in:
36
datachannelinit.go
Normal file
36
datachannelinit.go
Normal file
@@ -0,0 +1,36 @@
|
||||
// SPDX-FileCopyrightText: 2026 The Pion community <https://pion.ly>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package webrtc
|
||||
|
||||
// DataChannelInit can be used to configure properties of the underlying
|
||||
// channel such as data reliability.
|
||||
type DataChannelInit struct {
|
||||
// Ordered indicates if data is allowed to be delivered out of order. The
|
||||
// default value of true, guarantees that data will be delivered in order.
|
||||
Ordered *bool
|
||||
|
||||
// MaxPacketLifeTime limits the time (in milliseconds) during which the
|
||||
// channel will transmit or retransmit data if not acknowledged. This value
|
||||
// may be clamped if it exceeds the maximum value supported.
|
||||
MaxPacketLifeTime *uint16
|
||||
|
||||
// MaxRetransmits limits the number of times a channel will retransmit data
|
||||
// if not successfully delivered. This value may be clamped if it exceeds
|
||||
// the maximum value supported.
|
||||
MaxRetransmits *uint16
|
||||
|
||||
// Protocol describes the subprotocol name used for this channel.
|
||||
Protocol *string
|
||||
|
||||
// Negotiated describes if the data channel is created by the local peer or
|
||||
// the remote peer. The default value of false tells the user agent to
|
||||
// announce the channel in-band and instruct the other peer to dispatch a
|
||||
// corresponding DataChannel. If set to true, it is up to the application
|
||||
// to negotiate the channel and create an DataChannel with the same id
|
||||
// at the other peer.
|
||||
Negotiated *bool
|
||||
|
||||
// ID overrides the default selection of ID for this channel.
|
||||
ID *uint16
|
||||
}
|
||||
Reference in New Issue
Block a user