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
↓ 3 callers
Method
GetFrom
GetFrom decodes ICE-CONTROLLED from message.
icecontrol.go:50
↓ 3 callers
Method
GetFrom
GetFrom decodes ICE-CONTROLLING from message.
icecontrol.go:63
↓ 3 callers
Method
HandleSuccessResponse
(m *stun.Message, local, remote Candidate, remoteAddr net.Addr)
selection.go:18
↓ 3 callers
Method
IsClosed
IsClosed returns true if the mux had been closed.
udp_mux.go:219
↓ 3 callers
Method
LastResponseReceivedAt
LastResponseReceivedAt returns the timestamp of the last connectivity response received.
candidatepair.go:296
↓ 3 callers
Method
PingCandidate
(local, remote Candidate)
selection.go:17
↓ 3 callers
Method
Port
Port returns Candidate Port.
candidate_base.go:121
↓ 3 callers
Method
ResponsesReceived
ResponsesReceived returns the total number of connectivity responses received https://www.w3.org/TR/webrtc-stats/#dom-rtcicecandidatepairstats-respons
candidatepair.go:192
↓ 3 callers
Method
SetDeadline
SetDeadline sets both read and write deadlines on the underlying ICE connection.
transport.go:254
↓ 3 callers
Method
SetReadDeadline
(time.Time)
udp_mux_test.go:716
↓ 3 callers
Method
SetReadDeadline
(t time.Time)
tcp_packet_conn_test.go:41
↓ 3 callers
Method
UpdateOptions
UpdateOptions applies the given options to the agent at runtime. Only a subset of options can be updated after agent creation: - WithUrls: updates STU
agent.go:1873
↓ 3 callers
Method
UpdatePacketReceived
UpdatePacketReceived increments packet/byte counters and updates timestamp for a received application packet.
candidatepair.go:252
↓ 3 callers
Function
WithBindingRequestHandler
WithBindingRequestHandler sets a handler to allow applications to perform logic on incoming STUN Binding Requests. This was implemented to allow users
agent_options.go:778
↓ 3 callers
Function
WithICELite
WithICELite configures whether the agent operates in lite mode. Lite agents do not perform connectivity checks and only provide host candidates.
agent_options.go:337
↓ 3 callers
Function
WithMulticastDNSHostName
WithMulticastDNSHostName sets the mDNS host name used by the agent.
agent_options.go:541
↓ 3 callers
Function
WithPortRange
WithPortRange sets the UDP port range for host candidates.
agent_options.go:367
↓ 3 callers
Function
WithTCPPriorityOffset
WithTCPPriorityOffset sets a number which is subtracted from the default (UDP) candidate type preference for host, srflx and prfx candidate types. It
agent_options.go:734
↓ 3 callers
Function
WithUDPMuxSrflx
WithUDPMuxSrflx sets the UDP mux for server reflexive candidates.
agent_options.go:606
↓ 3 callers
Method
count
()
transport_filtering_matrix_test.go:224
↓ 3 callers
Function
defaultCandidateTypes
()
agent_config.go:61
↓ 3 callers
Method
deleteAllCandidates
Remove all candidates. This closes any listening sockets and removes both the local and remote candidate lists. This is used for restarts, failures a
agent.go:1503
↓ 3 callers
Method
detectNetworkChanges
detectNetworkChanges checks if the network interfaces have changed since the last check.
gather.go:1402
↓ 3 callers
Function
emptyScopeValue
(v string)
agent_options.go:88
↓ 3 callers
Method
expired
()
udp_mux_universal.go:274
↓ 3 callers
Method
gatherCandidatesSrflxMapped
(ctx context.Context, networkTypes []NetworkType)
gather.go:608
↓ 3 callers
Method
gatherCandidatesSrflxUDPMux
nolint:gocognit,cyclop
gather.go:724
↓ 3 callers
Method
getBestValidCandidatePair
()
agent.go:858
↓ 3 callers
Method
invalidatePendingBindingRequests
Removes pending binding requests that are over maxBindingRequestTimeout old Let HTO be the transaction timeout, which SHOULD be 2*RTT if RTT is known
agent.go:1606
↓ 3 callers
Method
mDNSQueryTimeout
()
agent.go:1032
↓ 3 callers
Method
mappingForFamily
(isIPv4 bool)
external_ip_mapper.go:217
↓ 3 callers
Function
mustCandidatePeerReflexiveWithExtensions
( t *testing.T, conf *CandidatePeerReflexiveConfig, extensions []CandidateExtension, )
candidate_test.go:351
↓ 3 callers
Function
newBlockingReadPacketConn
()
shared_packet_conn_test.go:103
↓ 3 callers
Function
newMockUniversalUDPMux
(addrs []net.Addr, xorAddr *stun.XORMappedAddress)
gather_test.go:4525
↓ 3 callers
Function
newTestTCPPC
(t *testing.T, readBuf int)
tcp_packet_conn_test.go:133
↓ 3 callers
Method
pending
()
udp_mux_universal.go:270
↓ 3 callers
Function
readCandidateDigitToken
Read a digit token from the raw string stop reading when a space is encountered or the end of the string.
candidate_base.go:981
↓ 3 callers
Method
removeUfragFromMux
()
agent.go:1462
↓ 3 callers
Method
reset
()
udp_mux.go:387
↓ 3 callers
Method
sendBindingSuccess
(m *stun.Message, local, remote Candidate)
agent.go:1567
↓ 3 callers
Method
sendSTUN
(msg *stun.Message, local, remote Candidate)
candidatepair.go:146
↓ 3 callers
Function
sendUntilDone
(t *testing.T, writingConn, readingConn net.Conn, maxAttempts int)
selection_test.go:34
↓ 3 callers
Method
setIPAddr
(addr netip.Addr)
candidate_host.go:71
↓ 3 callers
Method
shouldRewriteCandidateType
(candidateType CandidateType)
gather.go:180
↓ 3 callers
Method
startConnect
(isControlling bool, remoteUfrag, remotePwd string)
transport.go:96
↓ 3 callers
Function
testBooleanOption
(t *testing.T, test booleanOptionTest, optionName string)
agent_options_test.go:30
↓ 2 callers
Method
Component
Component returns candidate component.
candidate_base.go:136
↓ 2 callers
Method
ContactCandidates
()
selection.go:16
↓ 2 callers
Method
ContactCandidates
()
selection.go:51
↓ 2 callers
Method
EnqueueSelectedCandidatePair
(pair *CandidatePair)
agent_handlers.go:159
↓ 2 callers
Method
FirstRequestReceivedAt
FirstRequestReceivedAt returns the timestamp of the first connectivity check received.
candidatepair.go:305
↓ 2 callers
Method
FirstRequestSentAt
FirstRequestSentAt returns the timestamp of the first connectivity check sent.
candidatepair.go:263
↓ 2 callers
Method
FirstResponseReceivedAt
FirstResponseReceivedAt returns the timestamp of the first connectivity response received.
candidatepair.go:287
↓ 2 callers
Method
GetCandidatePairsInfo
GetCandidatePairsInfo returns snapshot information for all candidate pairs. Use the returned ID with WriteToPair() to write to a specific pair.
transport.go:160
↓ 2 callers
Method
GetConn
GetConn returns a PacketConn given the connection's ufrag and network creates the connection if an existing one can't be found.
udp_mux_multi.go:41
↓ 2 callers
Method
GetConnByUfrag
GetConnByUfrag returns a PacketConn given the connection's ufrag, network and local address creates the connection if an existing one can't be found.
tcp_mux_multi.go:37
↓ 2 callers
Method
GetConnForURL
(ufrag string, url string, addr net.Addr)
udp_mux_universal.go:23
↓ 2 callers
Method
GetFrom
GetFrom decodes DTLS-in-STUN attribute from message.
sped.go:23
↓ 2 callers
Method
GetListenAddresses
GetListenAddresses returns the list of addresses that this mux is listening on.
udp_mux.go:139
↓ 2 callers
Method
GetSelectedCandidatePairStats
GetSelectedCandidatePairStats returns a candidate pair stats for selected candidate pair. Returns false if there is no selected pair.
agent_stats.go:65
↓ 2 callers
Method
GetXORMappedAddr
GetXORMappedAddr returns *stun.XORMappedAddress if already present for a given STUN server. Makes a STUN binding request to discover mapped address ot
udp_mux_universal.go:176
↓ 2 callers
Method
Interfaces
()
net_test.go:75
↓ 2 callers
Method
Interfaces
()
agent_options_test.go:1724
↓ 2 callers
Method
Interfaces
()
transport_filtering_matrix_test.go:145
↓ 2 callers
Method
Interfaces
()
gather_test.go:802
↓ 2 callers
Method
Interfaces
()
gather_test.go:912
↓ 2 callers
Method
Interfaces
()
gather_test.go:1032
↓ 2 callers
Method
Interfaces
()
gather_test.go:1139
↓ 2 callers
Method
IsSet
IsSet returns true if USE-CANDIDATE attribute is set.
usecandidate.go:19
↓ 2 callers
Method
LastPacketReceivedAt
LastPacketReceivedAt returns the timestamp of the last application packet received.
candidatepair.go:232
↓ 2 callers
Method
LastPacketSentAt
LastPacketSentAt returns the timestamp of the last application packet sent.
candidatepair.go:223
↓ 2 callers
Method
LastReceived
LastReceived returns a time.Time indicating the last time this candidate was received.
candidate_base.go:510
↓ 2 callers
Method
LastRequestReceivedAt
LastRequestReceivedAt returns the timestamp of the last connectivity check received.
candidatepair.go:314
↓ 2 callers
Method
LastRequestSentAt
LastRequestSentAt returns the timestamp of the last connectivity check sent.
candidatepair.go:272
↓ 2 callers
Method
LastSent
LastSent returns a time.Time indicating the last time this candidate was sent.
candidate_base.go:524
↓ 2 callers
Function
NewUniversalUDPMuxDefault
NewUniversalUDPMuxDefault creates an implementation of UniversalUDPMux embedding UDPMux.
udp_mux_universal.go:47
↓ 2 callers
Method
PacketsReceived
PacketsReceived returns total application (non-STUN) packets received on this pair.
candidatepair.go:208
↓ 2 callers
Method
PacketsSent
PacketsSent returns total application (non-STUN) packets sent on this pair.
candidatepair.go:203
↓ 2 callers
Method
PingCandidate
(local, remote Candidate)
selection.go:349
↓ 2 callers
Method
Preference
Preference returns the preference weight of a CandidateType 4.1.2.2. Guidelines for Choosing Type and Local Preferences The RECOMMENDED values are 1
candidatetype.go:44
↓ 2 callers
Method
RelatedAddress
RelatedAddress returns *CandidateRelatedAddress.
candidate_base.go:226
↓ 2 callers
Method
RelayProtocol
RelayProtocol returns the protocol used between the endpoint and the relay server.
candidate_relay.go:89
↓ 2 callers
Method
RemoteAddr
RemoteAddr returns the remote address of the connection which is only set once a background goroutine has successfully dialed. That means this may ret
active_tcp.go:150
↓ 2 callers
Method
RemoteAddr
()
gather_test.go:1723
↓ 2 callers
Method
SetReadDeadline
(d time.Time)
tcp_packet_conn.go:362
↓ 2 callers
Method
SetReadDeadline
nolint:revive
internal/fakenet/mock_conn.go:21
↓ 2 callers
Method
SetWriteDeadline
(time.Time)
udp_mux_test.go:717
↓ 2 callers
Method
SetWriteDeadline
(t time.Time)
tcp_packet_conn_test.go:47
↓ 2 callers
Method
SetWriteDeadline
(d time.Time)
tcp_packet_conn.go:376
↓ 2 callers
Method
String
()
candidatepair.go:60
↓ 2 callers
Method
TotalRoundTripTime
TotalRoundTripTime returns the current round trip time in seconds https://www.w3.org/TR/webrtc-stats/#dom-rtcicecandidatepairstats-totalroundtriptime
candidatepair.go:174
↓ 2 callers
Function
UDPMuxFromPortWithNet
UDPMuxFromPortWithNet sets the network transport to use.
udp_mux_multi.go:232
↓ 2 callers
Function
UDPMuxFromPortWithReadBufferSize
UDPMuxFromPortWithReadBufferSize set the UDP connection read buffer size.
udp_mux_multi.go:196
↓ 2 callers
Function
UDPMuxFromPortWithWriteBufferSize
UDPMuxFromPortWithWriteBufferSize set the UDP connection write buffer size.
udp_mux_multi.go:205
↓ 2 callers
Method
UnmarshalText
UnmarshalText implements TextUnmarshaler.
role.go:20
↓ 2 callers
Method
UpdateRequestSent
UpdateRequestSent increments the number of requests sent and updates the timestamp.
candidatepair.go:323
↓ 2 callers
Method
UpdateResponseSent
UpdateResponseSent increments the number of responses sent.
candidatepair.go:331
↓ 2 callers
Function
WithCheckInterval
WithCheckInterval sets how often the agent runs connectivity checks while connecting.
agent_options.go:645
↓ 2 callers
Function
WithDisableActiveTCP
WithDisableActiveTCP disables Active TCP candidates. When TCP is enabled, Active TCP candidates will be created when a new passive TCP remote candidat
agent_options.go:753
↓ 2 callers
Function
WithDisconnectedTimeout
WithDisconnectedTimeout sets the duration before the agent transitions to disconnected state. A timeout of 0 disables the transition.
agent_options.go:382
← previous
next →
301–400 of 1,382, ranked by callers