Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pion/ice
/ functions
Functions
1,382 in github.com/pion/ice
⨍
Functions
1,382
◇
Types & classes
160
↓ 621 callers
Method
Equal
(other Candidate)
candidate.go:78
↓ 371 callers
Method
Run
Run serially executes the submitted callback. Blocking tasks must be cancelable by context.
internal/taskloop/taskloop.go:80
↓ 306 callers
Method
Close
()
gather.go:29
↓ 265 callers
Method
String
()
candidate.go:74
↓ 178 callers
Method
Close
Close cleans up the Agent.
agent.go:1475
↓ 169 callers
Function
NewAgent
NewAgent creates a new Agent. Deprecated: use NewAgentWithOptions instead.
agent.go:186
↓ 122 callers
Function
NewAgentWithOptions
NewAgentWithOptions creates a new Agent with options only.
agent.go:191
↓ 104 callers
Method
Warnf
(string, ...any)
selection_test.go:183
↓ 90 callers
Method
Load
Load retrieves the current value of the atomic variable.
internal/atomic/atomic.go:20
↓ 86 callers
Function
NewCandidateHost
NewCandidateHost creates a new host candidate.
candidate_host.go:32
↓ 79 callers
Method
Errorf
(format string, args ...any)
selection_test.go:185
↓ 75 callers
Method
NewLogger
(string)
selection_test.go:193
↓ 69 callers
Function
newAddressRewriteMapper
nolint:gocognit,gocyclo,cyclop
external_ip_mapper.go:252
↓ 65 callers
Method
Done
Done implements context.Context.
candidate_base.go:68
↓ 61 callers
Method
Type
()
candidate.go:75
↓ 59 callers
Method
Address
()
candidate.go:46
↓ 58 callers
Function
WithNet
WithNet sets the underlying network implementation for the agent.
agent_options.go:515
↓ 56 callers
Method
OnCandidate
OnCandidate sets a handler that is fired when new candidates gathered. When the gathering process complete the last candidate is nil.
agent_handlers.go:25
↓ 54 callers
Method
Store
Store updates the value of the atomic variable.
internal/atomic/atomic.go:15
↓ 51 callers
Function
WithNetworkTypes
WithNetworkTypes sets the enabled candidate network types for candidate gathering. This controls the network types exposed in ICE candidates and used
agent_options.go:869
↓ 49 callers
Method
Error
()
addr.go:80
↓ 49 callers
Method
OnConnectionStateChange
OnConnectionStateChange sets a handler that is fired when the connection state changes.
agent_handlers.go:9
↓ 48 callers
Method
LocalAddr
LocalAddr returns the local address of the current selected pair or nil if there is none.
transport.go:234
↓ 47 callers
Function
supportedNetworkTypes
()
networktype.go:21
↓ 45 callers
Method
NetworkType
()
candidate.go:45
↓ 41 callers
Function
WithCandidateTypes
WithCandidateTypes sets the enabled candidate types for gathering. By default, host, server reflexive, and relay candidates are enabled. Example: a
agent_options.go:940
↓ 40 callers
Method
addPair
(local, remote Candidate)
agent.go:875
↓ 39 callers
Method
GatherCandidates
GatherCandidates initiates the trickle based gathering process.
gather.go:116
↓ 39 callers
Function
WithAddressRewriteRules
WithAddressRewriteRules appends the provided address rewrite (1:1) rules to the agent's existing configuration. Each `AddressRewriteRule` can limit th
agent_options.go:51
↓ 39 callers
Function
WithMulticastDNSMode
WithMulticastDNSMode configures mDNS behavior for the agent.
agent_options.go:528
↓ 39 callers
Method
getSelectedPair
()
agent.go:1837
↓ 38 callers
Function
newStubNet
(t *testing.T)
agent_options_test.go:1678
↓ 37 callers
Method
GetLocalCandidates
GetLocalCandidates returns the local candidates.
agent.go:1395
↓ 36 callers
Function
newCandidatePair
(local, remote Candidate, controlling bool)
candidatepair.go:14
↓ 35 callers
Method
ListenUDP
(network string, laddr *net.UDPAddr)
net_test.go:200
↓ 34 callers
Method
findExternalIPs
(locIP net.IP)
external_ip_mapper.go:185
↓ 32 callers
Method
ID
ID is a unique identifier for just this candidate Unlike the foundation this is different for each candidate
candidate.go:32
↓ 31 callers
Method
Tracef
(string, ...any)
selection_test.go:177
↓ 30 callers
Method
UpdateRoundTripTime
UpdateRoundTripTime sets the current round time of this pair and accumulates total round trip time and responses received.
candidatepair.go:155
↓ 30 callers
Function
assertExternalIPStrings
( t *testing.T, mapper *addressRewriteMapper, candidateType CandidateType, localIP string, iface string,
external_ip_mapper_test.go:28
↓ 30 callers
Function
newPingNoIOCand
()
selection_test.go:245
↓ 29 callers
Function
NewUDPMuxDefault
NewUDPMuxDefault creates an implementation of UDPMux.
udp_mux.go:64
↓ 29 callers
Method
Write
Write implements the Conn Write method.
transport.go:125
↓ 29 callers
Function
onConnected
()
transport_test.go:341
↓ 28 callers
Method
RemoteAddr
RemoteAddr returns the remote address of the current selected pair or nil if there is none.
transport.go:244
↓ 26 callers
Method
Read
Read implements the Conn Read method.
transport.go:112
↓ 25 callers
Function
closeConnAndLog
Close a net.Conn and log if we have a failure.
gather.go:102
↓ 24 callers
Method
Priority
()
candidate.go:49
↓ 24 callers
Function
localInterfaces
nolint:gocognit,cyclop
net.go:48
↓ 23 callers
Function
UseCandidate
UseCandidate is shorthand for UseCandidateAttr.
usecandidate.go:26
↓ 23 callers
Method
handleInbound
handleInbound processes STUN traffic from a remote candidate.
agent.go:1670
↓ 22 callers
Method
LocalAddr
LocalAddr returns the listening address of this TCPMuxDefault.
tcp_mux.go:119
↓ 22 callers
Method
Port
()
candidate.go:47
↓ 22 callers
Function
WithRenomination
WithRenomination enables ICE renomination as described in draft-thatcher-ice-renomination-01. When enabled, the controlling agent can renominate candi
agent_options.go:668
↓ 22 callers
Function
envOrDefault
(key, fallback string)
examples/nat-rules/main.go:471
↓ 22 callers
Function
newStubPacketConn
(addr net.Addr)
gather_test.go:4436
↓ 21 callers
Method
Debugf
(string, ...any)
selection_test.go:179
↓ 21 callers
Method
ListenTCP
(string, *net.TCPAddr)
gather_test.go:1279
↓ 21 callers
Method
close
()
candidate.go:94
↓ 21 callers
Function
makeRule
(candidateType CandidateType, ips ...string)
external_ip_mapper_test.go:13
↓ 21 callers
Method
setSelectedPair
(pair *CandidatePair)
agent.go:764
↓ 20 callers
Method
GetLocalUserCredentials
GetLocalUserCredentials returns the local user credentials.
agent.go:1431
↓ 20 callers
Method
IsTCP
IsTCP returns true when network is TCP4 or TCP6.
networktype.go:68
↓ 19 callers
Method
Close
Close closes the listener and waits for all goroutines to exit.
tcp_mux.go:329
↓ 19 callers
Function
connect
(t *testing.T, aAgent, bAgent *Agent)
transport_test.go:237
↓ 18 callers
Function
NewCandidateRelay
NewCandidateRelay creates a new relay candidate.
candidate_relay.go:45
↓ 18 callers
Function
NewTCPMuxDefault
NewTCPMuxDefault creates a new instance of TCPMuxDefault.
tcp_mux.go:69
↓ 18 callers
Method
findPair
(local, remote Candidate)
agent.go:885
↓ 18 callers
Function
hostCandidate
()
candidatepair_test.go:12
↓ 17 callers
Method
Close
Close the mux, no further connections could be created.
udp_mux.go:229
↓ 17 callers
Method
Infof
(string, ...any)
selection_test.go:181
↓ 17 callers
Function
WithUrls
WithUrls sets the STUN/TURN server URLs used by the agent.
agent_options.go:350
↓ 17 callers
Method
addRemoteCandidate
addRemoteCandidate assumes you are holding the lock (must be execute using a.run). Returns true when the candidate is accepted (including duplicates).
agent.go:1256
↓ 17 callers
Function
listenUDPInPortRange
nolint:cyclop
net.go:130
↓ 17 callers
Method
priority
RFC 5245 - 5.7.2. Computing Pair Priority and Ordering Pairs Let G be the priority for the candidate provided by the controlling agent. Let D be the
candidatepair.go:99
↓ 16 callers
Function
UnmarshalCandidate
UnmarshalCandidate Parses a candidate from a string https://datatracker.ietf.org/doc/html/rfc5245#section-15.1
candidate_base.go:757
↓ 16 callers
Function
secondTestMuxedConn
(t *testing.T, capBytes int)
udp_mux_test.go:290
↓ 16 callers
Method
setSelector
()
agent.go:1982
↓ 15 callers
Method
AddExtension
AddExtension adds an extension attribute to the ICECandidate. If an extension with the same key already exists, it will be overwritten. Extension attr
candidate.go:69
↓ 15 callers
Method
AddRemoteCandidate
AddRemoteCandidate adds a new remote candidate.
agent.go:956
↓ 15 callers
Method
Err
Err implements context.Context.
candidate_base.go:73
↓ 15 callers
Method
addr
()
candidate.go:89
↓ 15 callers
Function
bareAgentForPing
()
selection_test.go:255
↓ 15 callers
Function
closePipe
(t *testing.T, ca *Conn, cb *Conn)
connectivity_vnet_test.go:321
↓ 15 callers
Method
getSelector
()
agent.go:2000
↓ 14 callers
Function
DefaultNominationValueGenerator
DefaultNominationValueGenerator returns a generator that starts at 1 and increments for each call. This provides a simple, monotonically increasing se
agent_options.go:28
↓ 14 callers
Function
newSharedPacketConn
newSharedPacketConn increments the shared refcount and returns a wrapper. Each returned wrapper must have Close called exactly once.
shared_packet_conn.go:44
↓ 14 callers
Function
parseAddr
(in net.Addr)
addr.go:38
↓ 14 callers
Method
shouldAcceptNomination
shouldAcceptNomination checks if a nomination should be accepted based on renomination rules.
selection.go:292
↓ 14 callers
Function
validateIPString
(ipStr string)
external_ip_mapper.go:59
↓ 13 callers
Method
Accept
Accept blocks until at least one ice candidate pair has successfully connected.
transport.go:65
↓ 13 callers
Method
Dial
Dial blocks until at least one ice candidate pair has successfully connected.
transport.go:40
↓ 13 callers
Method
Extensions
Extensions returns a copy of all extension attributes associated with the ICECandidate. In the order of insertion, *(key value). Extension attributes
candidate.go:60
↓ 13 callers
Method
IsIPv6
IsIPv6 returns whether the network type is IPv6 or not.
networktype.go:109
↓ 13 callers
Method
ListenPacket
(string, string)
gather_test.go:1274
↓ 13 callers
Function
mustCandidateHost
(t *testing.T, conf *CandidateHostConfig)
candidate_test.go:279
↓ 13 callers
Function
randomPort
(tb testing.TB)
transport_test.go:351
↓ 13 callers
Method
setExtensions
(extensions []CandidateExtension)
candidate_base.go:751
↓ 12 callers
Method
Debug
(string)
selection_test.go:178
↓ 12 callers
Function
NewCandidateServerReflexive
NewCandidateServerReflexive creates a new server reflective candidate.
candidate_server_reflexive.go:30
next →
1–100 of 1,382, ranked by callers