Source File
proto.go
Belonging Package
github.com/pion/turn/v4/internal/proto
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>// SPDX-License-Identifier: MIT// Package proto implements RFC 5766 Traversal Using Relays around NAT.package protoimport ()// Default ports for TURN from RFC 5766 Section 4.const (// DefaultPort for TURN is same as STUN.DefaultPort = stun.DefaultPort// DefaultTLSPort is for TURN over TLS and is same as STUN.DefaultTLSPort = stun.DefaultTLSPort)// CreatePermissionRequest is shorthand for create permission request type.func () stun.MessageType {return stun.NewType(stun.MethodCreatePermission, stun.ClassRequest)}// AllocateRequest is shorthand for allocation request message type.func () stun.MessageType { return stun.NewType(stun.MethodAllocate, stun.ClassRequest) }// SendIndication is shorthand for send indication message type.func () stun.MessageType { return stun.NewType(stun.MethodSend, stun.ClassIndication) }// RefreshRequest is shorthand for refresh request message type.func () stun.MessageType { return stun.NewType(stun.MethodRefresh, stun.ClassRequest) }
![]() |
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. |