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