MCPcopy Create free account
hub / github.com/pion/ice / AddTo

Method AddTo

renomination.go:82–86  ·  view source on GitHub ↗

AddTo adds a Nomination attribute to a STUN message using the configured attribute type.

(m *stun.Message)

Source from the content-addressed store, hash-verified

80
81// AddTo adds a Nomination attribute to a STUN message using the configured attribute type.
82func (n NominationSetter) AddTo(m *stun.Message) error {
83 attr := NominationAttribute{Value: n.Value}
84
85 return attr.AddToWithType(m, n.AttrType)
86}

Callers 1

Calls 1

AddToWithTypeMethod · 0.95

Tested by 1