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

Method String

networktype.go:47–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45)
46
47func (t NetworkType) String() string {
48 switch t {
49 case NetworkTypeUDP4:
50 return udp4
51 case NetworkTypeUDP6:
52 return udp6
53 case NetworkTypeTCP4:
54 return tcp4
55 case NetworkTypeTCP6:
56 return tcp6
57 default:
58 return ErrUnknownType.Error()
59 }
60}
61
62// IsUDP returns true when network is UDP4 or UDP6.
63func (t NetworkType) IsUDP() bool {

Callers 1

Calls 1

ErrorMethod · 0.45

Tested by 1