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

Method InterfaceByName

gather_test.go:1330–1342  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

1328}
1329
1330func (n *errorTurnNet) InterfaceByName(name string) (*transport.Interface, error) {
1331 ifaces, err := n.Interfaces()
1332 if err != nil {
1333 return nil, err
1334 }
1335 for _, iface := range ifaces {
1336 if iface.Name == name {
1337 return iface, nil
1338 }
1339 }
1340
1341 return nil, transport.ErrInterfaceNotFound
1342}
1343
1344func (n *errorTurnNet) CreateDialer(*net.Dialer) transport.Dialer { return nil }
1345

Callers

nothing calls this directly

Calls 1

InterfacesMethod · 0.95

Tested by

no test coverage detected