MCPcopy Create free account
hub / github.com/pion/ice / GetLocalUserCredentials

Method GetLocalUserCredentials

agent.go:1431–1444  ·  view source on GitHub ↗

GetLocalUserCredentials returns the local user credentials.

()

Source from the content-addressed store, hash-verified

1429
1430// GetLocalUserCredentials returns the local user credentials.
1431func (a *Agent) GetLocalUserCredentials() (frag string, pwd string, err error) {
1432 valSet := make(chan struct{})
1433 err = a.loop.Run(a.loop, func(_ context.Context) {
1434 frag = a.localUfrag
1435 pwd = a.localPwd
1436 close(valSet)
1437 })
1438
1439 if err == nil {
1440 <-valSet
1441 }
1442
1443 return
1444}
1445
1446// GetRemoteUserCredentials returns the remote user credentials.
1447func (a *Agent) GetRemoteUserCredentials() (frag string, pwd string, err error) {

Callers 12

TestRoleConflictFunction · 0.95
TestWriteUseValidPairFunction · 0.95
TestUDPMux_Agent_RestartFunction · 0.80
TestAgentRestartFunction · 0.80
connectFunction · 0.80
connectWithVNetFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

RunMethod · 0.80

Tested by 10

TestRoleConflictFunction · 0.76
TestWriteUseValidPairFunction · 0.76
TestUDPMux_Agent_RestartFunction · 0.64
TestAgentRestartFunction · 0.64
connectFunction · 0.64
connectWithVNetFunction · 0.64