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

Function allNetworkTypesTCP

agent.go:597–609  ·  view source on GitHub ↗
(networkTypes []NetworkType)

Source from the content-addressed store, hash-verified

595}
596
597func allNetworkTypesTCP(networkTypes []NetworkType) bool {
598 if len(networkTypes) == 0 {
599 return false
600 }
601
602 for _, networkType := range networkTypes {
603 if !networkType.IsTCP() {
604 return false
605 }
606 }
607
608 return true
609}
610
611func localTCPAddrFromMux(tcpMux TCPMux) (*net.TCPAddr, bool) {
612 addrProvider, ok := tcpMux.(interface{ LocalAddr() net.Addr })

Callers 1

Calls 1

IsTCPMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…