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
↓ 2 callers
Function
WithEnableUseCandidateCheckPriority
WithEnableUseCandidateCheckPriority enables checking for equal or higher priority when switching selected candidate pair if the peer requests USE-CAND
agent_options.go:801
↓ 2 callers
Function
WithFailedTimeout
WithFailedTimeout sets the duration before the agent transitions to failed state after disconnected. A timeout of 0 disables the transition.
agent_options.go:396
↓ 2 callers
Function
WithHostAcceptanceMinWait
WithHostAcceptanceMinWait sets the minimum wait before selecting host candidates.
agent_options.go:423
↓ 2 callers
Function
WithIPFilter
WithIPFilter sets a filter for IP addresses used during candidate gathering.
agent_options.go:488
↓ 2 callers
Function
WithKeepaliveInterval
WithKeepaliveInterval sets how often ICE keepalive packets are sent. An interval of 0 disables keepalives.
agent_options.go:410
↓ 2 callers
Function
WithMaxBindingRequests
WithMaxBindingRequests sets the maximum number of binding requests before considering a pair failed.
agent_options.go:632
↓ 2 callers
Function
WithPrflxAcceptanceMinWait
WithPrflxAcceptanceMinWait sets the minimum wait before selecting prflx candidates.
agent_options.go:449
↓ 2 callers
Function
WithRelayAcceptanceMinWait
WithRelayAcceptanceMinWait sets the minimum wait before selecting relay candidates.
agent_options.go:462
↓ 2 callers
Function
WithSrflxAcceptanceMinWait
WithSrflxAcceptanceMinWait sets the minimum wait before selecting srflx candidates.
agent_options.go:436
↓ 2 callers
Method
Write
([]byte)
tcp_packet_conn_test.go:31
↓ 2 callers
Function
addrWithOptionalZone
(addr netip.Addr, zone string)
addr.go:12
↓ 2 callers
Function
applyAddressRewriteMapping
(agent *Agent)
agent.go:403
↓ 2 callers
Method
applyHostRewriteForUDPMux
(candidateIPs []net.IP, udpAddr *net.UDPAddr)
gather.go:236
↓ 2 callers
Method
close
(graceful bool)
agent.go:1486
↓ 2 callers
Method
closeAndLogError
(closer io.Closer)
tcp_packet_conn.go:287
↓ 2 callers
Method
closeWaiters
()
udp_mux_universal.go:259
↓ 2 callers
Method
containsAddress
(addr ipPort)
udp_muxed_conn.go:214
↓ 2 callers
Method
createConn
(ufrag string, isIPv6 bool, local net.IP, fromStun bool)
tcp_mux.go:148
↓ 2 callers
Function
createRenominationTestAgent
createRenominationTestAgent creates a test agent with renomination enabled and returns local/remote candidates.
renomination_test.go:52
↓ 2 callers
Function
defaultAddressRewriteMode
(candidateType CandidateType)
agent_options.go:145
↓ 2 callers
Method
extensionsEqual
Equal returns true if the candidate extensions are equal.
candidate_base.go:721
↓ 2 callers
Method
filterForLocationTracking
()
candidate.go:90
↓ 2 callers
Method
findBestCandidatePair
findBestCandidatePair finds the best available candidate pair based on quality assessment.
agent.go:2196
↓ 2 callers
Function
findIfaceForIP
(ifaces []ifaceAddr, ip net.IP)
gather.go:1308
↓ 2 callers
Method
findRemoteCandidate
(networkType NetworkType, addr net.Addr)
agent.go:1522
↓ 2 callers
Method
gatherCandidatesInternal
gatherCandidatesInternal performs the actual candidate gathering for all configured types.
gather.go:261
↓ 2 callers
Method
gatherCandidatesSrflx
nolint:cyclop,gocognit
gather.go:813
↓ 2 callers
Function
generateMulticastDNSName
()
mdns.go:33
↓ 2 callers
Function
generatePwd
generatePwd generates ICE pwd. This internally uses generateCryptoRandomString.
rand.go:48
↓ 2 callers
Function
generateUFrag
generateUFrag generates ICE user fragment. This internally uses generateCryptoRandomString.
rand.go:54
↓ 2 callers
Method
getBestAvailableCandidatePair
()
agent.go:841
↓ 2 callers
Method
getCandidatesStats
getCandidatesStats returns a list of candidates stats.
agent_stats.go:125
↓ 2 callers
Method
getConn
(ufrag string, isIPv6 bool)
udp_mux.go:365
↓ 2 callers
Method
getConn
(ufrag string, isIPv6 bool, local net.IP)
tcp_mux.go:416
↓ 2 callers
Function
getMonoNanos
getMonoNanos returns the monotonic nanoseconds of a time t since timeRef.
candidate_base.go:58
↓ 2 callers
Function
getMonoTime
getMonoTime returns a time.Time based on monotonic nanos since timeRef.
candidate_base.go:63
↓ 2 callers
Function
getRTT
getRTT returns the current RTT for the selected candidate pair.
examples/automatic-renomination/main.go:39
↓ 2 callers
Method
handleInboundBindingSuccess
Assert that the passed TransactionID is in our pendingBindingRequests and returns the destination If the bindingRequest was valid remove it from our p
agent.go:1624
↓ 2 callers
Method
handleRecv
(pkt streamingPacket)
tcp_packet_conn.go:211
↓ 2 callers
Method
handleXORMappedResponse
handleXORMappedResponse parses response from the STUN server, extracts XORMappedAddress attribute. and set the mapped address for the server.
udp_mux_universal.go:152
↓ 2 callers
Method
hasMappings
()
external_ip_mapper.go:213
↓ 2 callers
Method
initWithDefaults
initWithDefaults populates an agent and falls back to defaults if fields are unset.
agent_config.go:250
↓ 2 callers
Method
isClosed
()
udp_muxed_conn.go:175
↓ 2 callers
Method
isFamilyAllowed
(isLocalIPv4 bool)
external_ip_mapper.go:225
↓ 2 callers
Function
isTCPNetworkName
(network string)
transport_filtering_matrix_test.go:249
↓ 2 callers
Function
makeCandidatePair
(t *testing.T)
agent_on_selected_candidate_pair_change_test.go:46
↓ 2 callers
Function
mustCandidateRelayWithExtensions
( t *testing.T, conf *CandidateRelayConfig, extensions []CandidateExtension, )
candidate_test.go:312
↓ 2 callers
Function
mustCandidateServerReflexiveWithExtensions
( t *testing.T, conf *CandidateServerReflexiveConfig, extensions []CandidateExtension, )
candidate_test.go:336
↓ 2 callers
Method
needsToCheckPriorityOnNominated
()
agent.go:1970
↓ 2 callers
Function
newBufferHolder
(size int)
udp_mux.go:381
↓ 2 callers
Function
newDummyNoIOCand
(t CandidateType)
selection_test.go:342
↓ 2 callers
Function
newFakePC
(t *testing.T)
udp_mux_universal_test.go:336
↓ 2 callers
Function
newFakenetReader
(t *testing.T, payload []byte)
udp_mux_universal_test.go:197
↓ 2 callers
Function
newHookLogger
()
tcp_packet_conn_test.go:76
↓ 2 callers
Function
newIPMapping
()
external_ip_mapper.go:78
↓ 2 callers
Function
newInvalidAddrUDPMux
()
gather_test.go:4504
↓ 2 callers
Function
newRelayRemote
(t *testing.T)
utils_test.go:63
↓ 2 callers
Function
newUDPMuxedConn
(params *udpMuxedConnParams)
udp_muxed_conn.go:45
↓ 2 callers
Function
parseAddrFromIface
parseAddrFromIface should only be used when it's known the address belongs to that interface. e.g. it's LocalAddress on a listener.
addr.go:25
↓ 2 callers
Method
pingAllCandidates
()
agent.go:787
↓ 2 callers
Function
pipeWithVNetUsingOptions
(t *testing.T, opts0, opts1 []AgentOption)
connectivity_vnet_test.go:290
↓ 2 callers
Function
prflxCandidate
()
candidatepair_test.go:21
↓ 2 callers
Function
readCandidateByteString
Read a byte-string token from the raw string As defined in RFC 4566 1*(%x01-09/%x0B-0C/%x0E-FF) ;any byte except NUL, CR, or LF we imply that extensi
candidate_base.go:1020
↓ 2 callers
Function
readCandidatePort
Read and validate RFC 4566 port from the raw string.
candidate_base.go:1004
↓ 2 callers
Function
relayCandidate
()
candidatepair_test.go:39
↓ 2 callers
Function
removeZoneIDFromAddress
(addr string)
candidate_base.go:564
↓ 2 callers
Method
role
()
agent.go:1974
↓ 2 callers
Function
runScenario
(ctx context.Context, sc scenario)
examples/nat-rules/main.go:300
↓ 2 callers
Method
setGatheringState
(newState GatheringState)
agent.go:1952
↓ 2 callers
Method
setLastReceived
(t time.Time)
candidate_base.go:518
↓ 2 callers
Method
setLastReceived
(time.Time)
agent.go:1128
↓ 2 callers
Method
setLastSent
(t time.Time)
candidate_base.go:532
↓ 2 callers
Method
shouldReplace
(candidateType CandidateType)
external_ip_mapper.go:354
↓ 2 callers
Method
shouldRewriteHostCandidates
()
gather.go:184
↓ 2 callers
Function
skipOnPermission
(t *testing.T, err error, action string)
gather_test.go:41
↓ 2 callers
Method
start
(a *Agent, conn net.PacketConn, initializedCh <-chan struct{})
candidate.go:97
↓ 2 callers
Function
testMuxConnectionPair
(t *testing.T, pktConn net.PacketConn, remoteConn *net.UDPConn, ufrag string)
udp_mux_test.go:150
↓ 2 callers
Function
testTimeout
(t *testing.T, conn *Conn, timeout time.Duration)
transport_test.go:72
↓ 2 callers
Function
unmarshalCandidateExtensions
UnmarshalCandidateExtensions parses the candidate extensions from the raw string. *(SP extension-att-name SP extension-att-value) Where extension-att-
candidate_base.go:1079
↓ 2 callers
Function
urlSupportsSrflxGathering
(url stun.URI)
gather.go:59
↓ 2 callers
Method
validateSTUNTrafficCache
(addr net.Addr)
candidate_base.go:289
↓ 2 callers
Function
verifyPacket
(t *testing.T, b []byte, nextSeq uint32)
udp_mux_test.go:245
↓ 2 callers
Method
writeTo
(raw []byte, dst Candidate)
candidate_base.go:412
↓ 1 callers
Method
AddTo
AddTo adds a Nomination attribute to a STUN message using the configured attribute type.
renomination.go:82
↓ 1 callers
Method
Allocate
()
gather.go:28
↓ 1 callers
Method
ClearAliveTimer
()
tcp_packet_conn.go:134
↓ 1 callers
Method
Close
Close implements the Conn Close method. It is used to close the connection. Any calls to Read and Write will be unblocked and return an error.
transport.go:229
↓ 1 callers
Method
Close
()
tcp_packet_conn.go:310
↓ 1 callers
Method
Component
A component is a piece of a data stream. An example is one for RTP, and one for RTCP
candidate.go:36
↓ 1 callers
Method
DeepEqual
DeepEqual same as Equal, But it also compares the candidate extensions.
candidate.go:81
↓ 1 callers
Method
Done
The following methods implement context.Context for TaskLoop Done returns a channel that's closed when the task loop has been stopped.
internal/taskloop/taskloop.go:100
↓ 1 callers
Method
Equal
Equal is used to compare two candidateBases.
candidate_base.go:485
↓ 1 callers
Method
Error
()
addr.go:88
↓ 1 callers
Method
Error
(msg string)
tcp_packet_conn_test.go:86
↓ 1 callers
Method
Errorf
(string, ...any)
agent_options_test.go:1540
↓ 1 callers
Method
Extensions
()
candidate_base.go:612
↓ 1 callers
Method
FirstReponseReceivedAt
Deprecated: use FirstResponseReceivedAt FirstReponseReceivedAt returns the timestamp of the first connectivity response received.
candidatepair.go:282
↓ 1 callers
Method
Foundation
()
candidate_base.go:107
↓ 1 callers
Method
GetAllConns
(ufrag string, isIPv6 bool, localIP net.IP)
tcp_mux_multi.go:15
↓ 1 callers
Method
GetListenAddresses
GetListenAddresses returns the list of addresses that this mux is listening on.
udp_mux_multi.go:71
← previous
next →
401–500 of 1,382, ranked by callers