Home | History | Annotate | Download | only in net

Lines Matching refs:network

68 func lookupPortMap(network, service string) (port int, error error) {
69 switch network {
71 network = "tcp"
73 network = "udp"
76 if m, ok := services[network]; ok {
84 return 0, &AddrError{Err: "unknown port", Addr: network + "/" + service}
216 // LookupPort looks up the port for the given network and service.
217 func LookupPort(network, service string) (port int, err error) {
218 return DefaultResolver.LookupPort(context.Background(), network, service)
221 // LookupPort looks up the port for the given network and service.
222 func (r *Resolver) LookupPort(ctx context.Context, network, service string) (port int, err error) {
225 port, err = r.lookupPort(ctx, network, service)