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

Method String

tcptype.go:38–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36}
37
38func (t TCPType) String() string {
39 switch t {
40 case TCPTypeUnspecified:
41 return ""
42 case TCPTypeActive:
43 return "active"
44 case TCPTypePassive:
45 return "passive"
46 case TCPTypeSimultaneousOpen:
47 return "so"
48 default:
49 return ErrUnknownType.Error()
50 }
51}

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected