Skip to content

Commit

Permalink
Fixes and Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeTurki committed Jan 15, 2025
1 parent 471afae commit a046e0b
Show file tree
Hide file tree
Showing 8 changed files with 461 additions and 308 deletions.
10 changes: 4 additions & 6 deletions candidate.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,17 @@ type Candidate interface {
// In the order of insertion, *(key value).
// Extension attributes are defined in RFC 5245, Section 15.1:
// https://datatracker.ietf.org/doc/html/rfc5245#section-15.1
Extensions() []string

// GetExtension retrieves the value of a specific extension attribute for the ICECandidate.
// Extension attributes are defined in RFC 5245, Section 15.1:
// https://datatracker.ietf.org/doc/html/rfc5245#section-15.1
GetExtension(name string) (value string, ok bool)
Extensions() CandidateExtensions

String() string
Type() CandidateType
TCPType() TCPType

Equal(other Candidate) bool

// DeepEqual same as Equal, But it also compares the candidate extensions.
DeepEqual(other Candidate) bool

Marshal() string

addr() net.Addr
Expand Down
Loading

0 comments on commit a046e0b

Please sign in to comment.