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

Method AddTo

priority.go:18–24  ·  view source on GitHub ↗

32 bit AddTo adds PRIORITY attribute to message.

(m *stun.Message)

Source from the content-addressed store, hash-verified

16
17// AddTo adds PRIORITY attribute to message.
18func (p PriorityAttr) AddTo(m *stun.Message) error {
19 v := make([]byte, prioritySize)
20 binary.BigEndian.PutUint32(v, uint32(p))
21 m.Add(stun.AttrPriority, v)
22
23 return nil
24}
25
26// GetFrom decodes PRIORITY attribute from message.
27func (p *PriorityAttr) GetFrom(m *stun.Message) error {

Callers 4

testMuxSrflxConnectionFunction · 0.45

Calls

no outgoing calls

Tested by 4

testMuxSrflxConnectionFunction · 0.36