srs/trunk/3rdparty/srs-bench/vendor/github.com/wlynxg/anet/interface.go
Haibo Chen(陈海博) 974826800f
update pion/webrtc to v4. v7.0.34 (#4359)
To enable H.265 support for the WebRTC protocol, upgrade the pion/webrtc
library to version 4.

---------

Co-authored-by: john <hondaxiao@tencent.com>
Co-authored-by: winlin <winlinvip@gmail.com>
2025-05-26 17:48:53 +08:00

31 lines
741 B
Go

//go:build !android
// +build !android
package anet
import (
"net"
)
// Interfaces returns a list of the system's network interfaces.
func Interfaces() ([]net.Interface, error) {
return net.Interfaces()
}
// InterfaceAddrs returns a list of the system's unicast interface
// addresses.
//
// The returned list does not identify the associated interface; use
// Interfaces and Interface.Addrs for more detail.
func InterfaceAddrs() ([]net.Addr, error) {
return net.InterfaceAddrs()
}
// InterfaceAddrsByInterface returns a list of the system's unicast
// interface addresses by specific interface.
func InterfaceAddrsByInterface(ifi *net.Interface) ([]net.Addr, error) {
return ifi.Addrs()
}
func SetAndroidVersion(version uint) {}