Source File
chunktype.go
Belonging Package
github.com/pion/sctp
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>// SPDX-License-Identifier: MITpackage sctpimport// chunkType is an enum for SCTP Chunk Type field// This field identifies the type of information contained in the// Chunk Value field.type chunkType uint8// List of known chunkType enums.const (ctPayloadData chunkType = 0ctInit chunkType = 1ctInitAck chunkType = 2ctSack chunkType = 3ctHeartbeat chunkType = 4ctHeartbeatAck chunkType = 5ctAbort chunkType = 6ctShutdown chunkType = 7ctShutdownAck chunkType = 8ctError chunkType = 9ctCookieEcho chunkType = 10ctCookieAck chunkType = 11ctCWR chunkType = 13ctShutdownComplete chunkType = 14ctReconfig chunkType = 130ctForwardTSN chunkType = 192)func ( chunkType) () string { //nolint:cyclopswitch {case ctPayloadData:return "DATA"case ctInit:return "INIT"case ctInitAck:return "INIT-ACK"case ctSack:return "SACK"case ctHeartbeat:return "HEARTBEAT"case ctHeartbeatAck:return "HEARTBEAT-ACK"case ctAbort:return "ABORT"case ctShutdown:return "SHUTDOWN"case ctShutdownAck:return "SHUTDOWN-ACK"case ctError:return "ERROR"case ctCookieEcho:return "COOKIE-ECHO"case ctCookieAck:return "COOKIE-ACK"case ctCWR:return "ECNE" // Explicit Congestion Notification Echocase ctShutdownComplete:return "SHUTDOWN-COMPLETE"case ctReconfig:return "RECONFIG" // Re-configurationcase ctForwardTSN:return "FORWARD-TSN"default:return fmt.Sprintf("Unknown ChunkType: %d", )}}
![]() |
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. |