AddTo adds a Nomination attribute to a STUN message.
(m *stun.Message)
| 46 | |
| 47 | // AddTo adds a Nomination attribute to a STUN message. |
| 48 | func (a NominationAttribute) AddTo(m *stun.Message) error { |
| 49 | return a.AddToWithType(m, DefaultNominationAttribute) |
| 50 | } |
| 51 | |
| 52 | // AddToWithType adds a Nomination attribute to a STUN message using a specific attribute type. |
| 53 | func (a NominationAttribute) AddToWithType(m *stun.Message, attrType stun.AttrType) error { |