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

Method GetRemoteUserCredentials

agent.go:1447–1460  ·  view source on GitHub ↗

GetRemoteUserCredentials returns the remote user credentials.

()

Source from the content-addressed store, hash-verified

1445
1446// GetRemoteUserCredentials returns the remote user credentials.
1447func (a *Agent) GetRemoteUserCredentials() (frag string, pwd string, err error) {
1448 valSet := make(chan struct{})
1449 err = a.loop.Run(a.loop, func(_ context.Context) {
1450 frag = a.remoteUfrag
1451 pwd = a.remotePwd
1452 close(valSet)
1453 })
1454
1455 if err == nil {
1456 <-valSet
1457 }
1458
1459 return
1460}
1461
1462func (a *Agent) removeUfragFromMux() {
1463 if a.tcpMux != nil {

Callers 1

TestGetRemoteCredentialsFunction · 0.95

Calls 1

RunMethod · 0.80

Tested by 1

TestGetRemoteCredentialsFunction · 0.76