Home | History | Annotate | Download | only in net

Lines Matching refs:network

59 func cgoLookupPort(ctx context.Context, network, service string) (port int, err error, completed bool) {
61 switch network {
70 return 0, &DNSError{Err: "unknown network", Name: network + "/" + service}, true
72 if len(network) >= 4 {
73 switch network[3] {
81 port, err := cgoLookupServicePort(&hints, network, service)
85 go cgoPortLookup(result, &hints, network, service)
96 func cgoLookupServicePort(hints *C.struct_addrinfo, network, service string) (port int, err error) {
114 return 0, &DNSError{Err: err.Error(), Name: network + "/" + service}
130 return 0, &DNSError{Err: "unknown port", Name: network + "/" + service}
133 func cgoPortLookup(result chan<- portLookupResult, hints *C.struct_addrinfo, network, service string) {
134 port, err := cgoLookupServicePort(hints, network, service)