TCP constructs an address with the network set to "tcp".
(address ...string)
| 7 | |
| 8 | // TCP constructs an address with the network set to "tcp". |
| 9 | func TCP(address ...string) net.Addr { return makeNetAddr("tcp", address) } |
| 10 | |
| 11 | func makeNetAddr(network string, addresses []string) net.Addr { |
| 12 | switch len(addresses) { |