Add support for renomination

This commit is contained in:
Kevin Wang
2025-08-16 23:21:24 -04:00
parent fb0107e8ae
commit 4b50bc8078
7 changed files with 1321 additions and 3 deletions

View File

@@ -120,6 +120,21 @@ var (
// ErrDetermineNetworkType indicates that the NetworkType was not able to be parsed.
ErrDetermineNetworkType = errors.New("unable to determine networkType")
// ErrOnlyControllingAgentCanRenominate indicates that only controlling agent can renominate.
ErrOnlyControllingAgentCanRenominate = errors.New("only controlling agent can renominate")
// ErrRenominationNotEnabled indicates that renomination is not enabled.
ErrRenominationNotEnabled = errors.New("renomination is not enabled")
// ErrCandidatePairNotFound indicates that candidate pair was not found.
ErrCandidatePairNotFound = errors.New("candidate pair not found")
// ErrInvalidNominationAttribute indicates an invalid nomination attribute type was provided.
ErrInvalidNominationAttribute = errors.New("invalid nomination attribute type")
// ErrInvalidNominationValueGenerator indicates a nil nomination value generator was provided.
ErrInvalidNominationValueGenerator = errors.New("nomination value generator cannot be nil")
errAttributeTooShortICECandidate = errors.New("attribute not long enough to be ICE candidate")
errClosingConnection = errors.New("failed to close connection")
errConnectionAddrAlreadyExist = errors.New("connection with same remote address already exists")