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
↓ 12 callers
Function
WithIncludeLoopback
WithIncludeLoopback includes loopback addresses in the candidate list. By default, loopback addresses are excluded. Example: agent, err := NewAgent
agent_options.go:714
↓ 12 callers
Method
closeAndLogError
(closer io.Closer)
tcp_mux.go:196
↓ 12 callers
Method
getNominationValue
getNominationValue returns a nomination value if generator is available, otherwise 0.
agent.go:2008
↓ 12 callers
Method
resolveRelayAddresses
(ep relayEndpoint)
gather.go:1239
↓ 11 callers
Method
Foundation
An arbitrary string used in the freezing algorithm to group similar candidates. It is the same for two candidates that have the same type, base IP ad
candidate.go:28
↓ 11 callers
Method
IsUDP
IsUDP returns true when network is UDP4 or UDP6.
networktype.go:63
↓ 11 callers
Method
Start
()
selection.go:15
↓ 11 callers
Method
TCPType
()
candidate.go:76
↓ 11 callers
Method
resolveSrflxAddresses
(localIP net.IP, iface string)
gather.go:1272
↓ 10 callers
Method
GetExtension
GetExtension returns the value of the extension attribute associated with the ICECandidate. Extension attributes are defined in RFC 5245, Section 15.1
candidate.go:65
↓ 10 callers
Method
GetFrom
GetFrom decodes a Nomination attribute from a STUN message.
renomination.go:27
↓ 10 callers
Method
IsIPv4
IsIPv4 returns whether the network type is IPv4 or not.
networktype.go:97
↓ 10 callers
Method
LocalAddr
LocalAddr returns the listening address of this UDPMuxDefault.
udp_mux.go:134
↓ 10 callers
Function
New
New creates and starts a new task loop.
internal/taskloop/taskloop.go:35
↓ 10 callers
Method
ResolveUDPAddr
(network, address string)
gather_test.go:1296
↓ 10 callers
Method
SetReadDeadline
SetReadDeadline sets the read deadline on the packet buffer used for application data.
transport.go:263
↓ 10 callers
Function
WithLoggerFactory
WithLoggerFactory sets the logger factory for the agent. Example: import "github.com/pion/logging" loggerFactory := logging.NewDefaultLoggerFacto
agent_options.go:1019
↓ 10 callers
Method
addRelayCandidates
(ctx context.Context, ep relayEndpoint)
gather.go:1351
↓ 10 callers
Method
applyHostAddressRewrite
(addr netip.Addr, mappedAddrs []netip.Addr, iface string)
gather.go:188
↓ 10 callers
Function
buildVNet
(natType0, natType1 *vnet.NATType)
connectivity_vnet_test.go:47
↓ 10 callers
Function
newHostGatherNet
(addr *net.UDPAddr)
gather_test.go:984
↓ 10 callers
Function
pipe
(t *testing.T, defaultConfig *AgentConfig)
transport_test.go:263
↓ 9 callers
Method
HandleBindingRequest
(m *stun.Message, local, remote Candidate)
selection.go:19
↓ 9 callers
Method
LastReceived
The last time this candidate received traffic
candidate.go:40
↓ 9 callers
Method
Marshal
()
candidate.go:83
↓ 9 callers
Function
NewMultiTCPMuxDefault
NewMultiTCPMuxDefault creates an instance of MultiTCPMuxDefault that uses the provided TCPMux instances.
tcp_mux_multi.go:27
↓ 9 callers
Method
Restart
Restart restarts the ICE Agent with the provided ufrag/pwd If no ufrag/pwd is provided the Agent will generate one itself If there is a gatherer rout
agent.go:1897
↓ 9 callers
Function
WithUDPMux
WithUDPMux sets the UDP mux used for multiplexing host candidates.
agent_options.go:593
↓ 9 callers
Function
assertNoExternalMapping
(t *testing.T, mapper *addressRewriteMapper, candidateType CandidateType, localIP string)
external_ip_mapper_test.go:47
↓ 9 callers
Method
gatherCandidatesRelay
nolint:maintidx,gocognit,gocyclo,cyclop
gather.go:943
↓ 9 callers
Function
newAgentFromConfig
(config *AgentConfig, opts ...AgentOption)
agent.go:195
↓ 9 callers
Function
shouldFilterLocationTracked
shouldFilterLocationTracked returns if this candidate IP should be filtered out from any candidate publishing/notification for location tracking reaso
gather.go:512
↓ 9 callers
Method
shouldRenominate
shouldRenominate determines if automatic renomination should occur. It compares the current selected pair with a candidate pair and decides if switchi
agent.go:2147
↓ 8 callers
Method
DialTCP
(string, *net.TCPAddr, *net.TCPAddr)
gather_test.go:1288
↓ 8 callers
Method
GetFrom
GetFrom decodes Role and Tiebreaker value from message.
icecontrol.go:83
↓ 8 callers
Method
GetSelectedCandidatePair
GetSelectedCandidatePair returns the selected pair or nil if there is none.
agent.go:1818
↓ 8 callers
Method
LastSent
The last time this candidate sent traffic
candidate.go:43
↓ 8 callers
Method
TypePreference
TypePreference returns the type preference for this candidate.
candidate_base.go:429
↓ 8 callers
Method
Warn
(string)
selection_test.go:182
↓ 8 callers
Method
addCandidate
(ctx context.Context, cand Candidate, candidateConn net.PacketConn)
agent.go:1325
↓ 8 callers
Method
apply
(*multiUDPMuxFromPortParam)
udp_mux_multi.go:146
↓ 8 callers
Function
copyAtomicValue
(dst, src *atomic.Value)
agent.go:1121
↓ 8 callers
Method
evaluateCandidatePairQuality
evaluateCandidatePairQuality calculates a quality score for a candidate pair. Higher scores indicate better quality. The score considers: - Candidate
agent.go:2077
↓ 8 callers
Function
makeLocalRule
(local string, ips ...string)
external_ip_mapper_test.go:20
↓ 8 callers
Function
newHostLocal
(t *testing.T)
utils_test.go:80
↓ 8 callers
Function
newMockUDPMux
(addrs []net.Addr)
gather_test.go:4472
↓ 8 callers
Method
writePacket
(data []byte, addr *net.UDPAddr)
udp_muxed_conn.go:221
↓ 7 callers
Method
Close
(graceful bool)
agent_handlers.go:69
↓ 7 callers
Method
CurrentRoundTripTime
CurrentRoundTripTime returns the current round trip time in seconds https://www.w3.org/TR/webrtc-stats/#dom-rtcicecandidatepairstats-currentroundtript
candidatepair.go:168
↓ 7 callers
Method
GetConn
(ufrag string, addr net.Addr)
udp_mux.go:24
↓ 7 callers
Method
GetFrom
GetFrom decodes PRIORITY attribute from message.
priority.go:27
↓ 7 callers
Method
Listen
()
gather.go:27
↓ 7 callers
Method
LocalAddr
()
udp_mux_test.go:714
↓ 7 callers
Method
NetworkShort
NetworkShort returns the short network description.
networktype.go:73
↓ 7 callers
Function
NewCandidatePeerReflexive
NewCandidatePeerReflexive creates a new peer reflective candidate.
candidate_peer_reflexive.go:32
↓ 7 callers
Function
NewMultiUDPMuxDefault
NewMultiUDPMuxDefault creates an instance of MultiUDPMuxDefault that uses the provided UDPMux instances.
udp_mux_multi.go:25
↓ 7 callers
Method
ReadFrom
(p []byte)
udp_mux_test.go:699
↓ 7 callers
Method
RelatedAddress
A transport address related to a candidate, which is useful for diagnostics and other purposes
candidate.go:53
↓ 7 callers
Method
ResolveTCPAddr
(network, address string)
gather_test.go:1300
↓ 7 callers
Method
WriteTo
([]byte, net.Addr)
udp_mux_test.go:712
↓ 7 callers
Method
WriteTo
(buff []byte, _ net.Addr)
active_tcp.go:118
↓ 7 callers
Method
copy
()
candidate.go:95
↓ 7 callers
Function
gatherAndExchangeCandidates
(t *testing.T, aAgent, bAgent *Agent)
transport_test.go:194
↓ 7 callers
Function
newActiveTCPConn
( ctx context.Context, localAddress string, remoteAddress netip.AddrPort, log logging.LeveledLogger, )
active_tcp.go:25
↓ 7 callers
Function
newTCPPacketConn
(params tcpPacketParams)
tcp_packet_conn.go:114
↓ 7 callers
Function
readCandidateStringToken
Read an ice string token from the raw string until a space is encountered Or the end of the string, we imply that ice string are UTF-8 encoded.
candidate_base.go:969
↓ 7 callers
Function
srflxCandidate
()
candidatepair_test.go:30
↓ 7 callers
Function
writeStreamingPacket
(conn net.Conn, buf []byte)
tcp_mux.go:472
↓ 6 callers
Method
AddConn
(conn net.Conn, firstPacketData []byte)
tcp_packet_conn.go:142
↓ 6 callers
Method
Close
Close the multi mux, no further connections could be created.
udp_mux_multi.go:59
↓ 6 callers
Method
Close
Close the multi mux, no further connections could be created.
tcp_mux_multi.go:77
↓ 6 callers
Method
DialUDP
(string, *net.UDPAddr, *net.UDPAddr)
gather_test.go:1284
↓ 6 callers
Method
GetConnByUfrag
GetConnByUfrag retrieves an existing or creates a new net.PacketConn. The returned conn is a refcounted — repeat calls return connection with increase
tcp_mux.go:126
↓ 6 callers
Method
GetGatheringState
GetGatheringState returns the current gathering state of the Agent.
agent.go:1418
↓ 6 callers
Method
GetListenAddresses
()
udp_mux.go:26
↓ 6 callers
Method
LocalAddr
()
gather_test.go:1722
↓ 6 callers
Function
NewMultiUDPMuxFromPort
NewMultiUDPMuxFromPort creates an instance of MultiUDPMuxDefault that listen all interfaces on the provided port.
udp_mux_multi.go:82
↓ 6 callers
Function
NewTCPType
NewTCPType creates a new TCPType from string.
tcptype.go:25
↓ 6 callers
Method
ReadFrom
(buff []byte)
active_tcp.go:106
↓ 6 callers
Method
RemoveConnByUfrag
(ufrag string)
udp_mux.go:25
↓ 6 callers
Method
Start
()
selection.go:287
↓ 6 callers
Method
Type
Type returns candidate type.
candidate_base.go:126
↓ 6 callers
Function
WithNominationAttribute
WithNominationAttribute sets the STUN attribute type to use for ICE renomination. The default value is 0xC001. This can be configured until the attrib
agent_options.go:691
↓ 6 callers
Function
WithTCPMux
WithTCPMux sets the TCP mux for ICE TCP multiplexing.
agent_options.go:580
↓ 6 callers
Function
WithTURNTransportProtocols
WithTURNTransportProtocols restricts protocols used by this agent when connecting to TURN servers (TURN client <-> TURN server transport). This is in
agent_options.go:892
↓ 6 callers
Function
addrEqual
(a, b net.Addr)
addr.go:113
↓ 6 callers
Method
agent
()
candidate_base.go:552
↓ 6 callers
Function
closedStartedCh
()
gather_test.go:2181
↓ 6 callers
Function
connectWithVNet
(t *testing.T, aAgent, bAgent *Agent)
connectivity_vnet_test.go:202
↓ 6 callers
Function
createAddr
(network NetworkType, ip netip.Addr, port int)
addr.go:104
↓ 6 callers
Function
determineNetworkType
determineNetworkType determines the type of network based on the short network string and an IP address.
networktype.go:122
↓ 6 callers
Method
equal
(other *CandidatePair)
candidatepair.go:78
↓ 6 callers
Method
hasCandidateType
(candidateType CandidateType)
external_ip_mapper.go:343
↓ 6 callers
Function
isSupportedIPv6Partial
The conditions of invalidation written below are defined in https://tools.ietf.org/html/rfc8445#section-5.1.1.1 It is partial because the link-local c
net.go:24
↓ 6 callers
Method
keepAliveCandidatesForRenomination
keepAliveCandidatesForRenomination pings all candidate pairs to keep them tested and ready for automatic renomination. Unlike pingAllCandidates, this:
agent.go:816
↓ 6 callers
Function
newIPPort
newIPPort create a custom type of address based on netip.Addr and port. The underlying ip address passed is converted to IPv6 format to simplify ip ad
udp_mux.go:400
↓ 6 callers
Function
requireFirstExternalIP
( t *testing.T, mapper *addressRewriteMapper, candidateType CandidateType, localIP string, )
agent_options_test.go:844
↓ 6 callers
Method
seen
(outbound bool)
candidate.go:96
↓ 6 callers
Method
sendBindingRequest
(msg *stun.Message, local, remote Candidate)
agent.go:1540
↓ 6 callers
Function
shouldFilterLocationTrackedIP
shouldFilterLocationTrackedIP returns if this candidate IP should be filtered out from any candidate publishing/notification for location tracking rea
gather.go:501
← previous
next →
101–200 of 1,382, ranked by callers