Source File
message_channel_ack.go
Belonging Package
github.com/pion/datachannel
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>// SPDX-License-Identifier: MITpackage datachannel// channelAck is used to ACK a DataChannel opentype channelAck struct{}const (channelOpenAckLength = 4)// Marshal returns raw bytes for the given messagefunc ( *channelAck) () ([]byte, error) {:= make([]byte, channelOpenAckLength)[0] = uint8(dataChannelAck)return , nil}// Unmarshal populates the struct with the given raw datafunc ( *channelAck) ( []byte) error {// Message type already checked in Parse and there is no further datareturn nil}func ( channelAck) () string {return "ACK"}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |