Home | History | Annotate | Download | only in net

Lines Matching refs:network

60 func cgoLookupPort(ctx context.Context, network, service string) (port int, err error, completed bool) {
62 switch network {
71 return 0, &DNSError{Err: "unknown network", Name: network + "/" + service}, true
73 if len(network) >= 4 {
74 switch network[3] {
82 port, err := cgoLookupServicePort(&hints, network, service)
86 go cgoPortLookup(result, &hints, network, service)
97 func cgoLookupServicePort(hints *C.struct_addrinfo, network, service string) (port int, err error) {
116 return 0, &DNSError{Err: err.Error(), Name: network + "/" + service}
132 return 0, &DNSError{Err: "unknown port", Name: network + "/" + service}
135 func cgoPortLookup(result chan<- portLookupResult, hints *C.struct_addrinfo, network, service string) {
136 port, err := cgoLookupServicePort(hints, network, service)