mirror of
https://github.com/pion/stun.git
synced 2025-10-21 14:59:41 +08:00
30 lines
989 B
Go
30 lines
989 B
Go
// Package stun implements Session Traversal Utilities for NAT (STUN) RFC 5389.
|
|
//
|
|
// Definitions
|
|
//
|
|
// STUN Agent: A STUN agent is an entity that implements the STUN
|
|
// protocol. The entity can be either a STUN client or a STUN
|
|
// server.
|
|
//
|
|
// STUN Client: A STUN client is an entity that sends STUN requests and
|
|
// receives STUN responses. A STUN client can also send indications.
|
|
// In this specification, the terms STUN client and client are
|
|
// synonymous.
|
|
//
|
|
// STUN Server: A STUN server is an entity that receives STUN requests
|
|
// and sends STUN responses. A STUN server can also send
|
|
// indications. In this specification, the terms STUN server and
|
|
// server are synonymous.
|
|
//
|
|
// Transport Address: The combination of an IP address and Port number
|
|
// (such as a UDP or TCP Port number).
|
|
package stun
|
|
|
|
import "encoding/binary"
|
|
|
|
// bin is shorthand to binary.BigEndian.
|
|
var bin = binary.BigEndian
|
|
|
|
// DefaultPort is IANA assigned Port for "stun" protocol.
|
|
const DefaultPort = 3478
|