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

Method Interfaces

gather_test.go:1304–1314  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1302}
1303
1304func (n *errorTurnNet) Interfaces() ([]*transport.Interface, error) {
1305 iface := transport.NewInterface(net.Interface{
1306 Index: 1,
1307 MTU: 1500,
1308 Name: "errturn0",
1309 Flags: net.FlagUp,
1310 })
1311 iface.AddAddress(&net.IPNet{IP: net.IPv4(127, 0, 0, 1), Mask: net.CIDRMask(8, 32)})
1312
1313 return []*transport.Interface{iface}, nil
1314}
1315
1316func (n *errorTurnNet) InterfaceByIndex(index int) (*transport.Interface, error) {
1317 ifaces, err := n.Interfaces()

Callers 4

InterfaceByIndexMethod · 0.95
InterfaceByNameMethod · 0.95
localInterfacesFunction · 0.45
printInterfaceSnapshotFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected