32 bit AddTo adds PRIORITY attribute to message.
(m *stun.Message)
| 16 | |
| 17 | // AddTo adds PRIORITY attribute to message. |
| 18 | func (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. |
| 27 | func (p *PriorityAttr) GetFrom(m *stun.Message) error { |
no outgoing calls