func (d *Dialer) DialContext(ctx context.Context, network, address string) (net.Conn, error) {
	switch network {
	default:
		return nil, fmt.Errorf("unsupported network %q", network)
	case "tcp", "tcp4", "tcp6":
		return d.do(ctx, ConnectCommand, address)
	case "udp", "udp4", "udp6":
		return d.do(ctx, AssociateCommand, address)
	}
}
// DialContext connects to the provided address on the provided network.
DialContext connects to the provided address on the provided network.
// DialContext connects to the provided address on the provided network .
func (d *Dialer) DialContext(ctx context.Context, network, address string) (net.Conn, error) {
	switch network {
	default:
		return nil, fmt.Errorf("unsupported network %q", network)
	case "tcp", "tcp4", "tcp6":
		return d.do(ctx, ConnectCommand, address)
	case "udp", "udp4", "udp6":
		return d.do(ctx, AssociateCommand, address)
	}
}
func ( d * Dialer ) DialContext ( ctx context . Context , network , address string ) ( net . Conn , error ) { switch network { default : return nil , fmt . Errorf ( " " , network ) case " " , " " , " " : return d . do ( ctx , ConnectCommand , address ) case " " , " " , " " : return d . do ( ctx , AssociateCommand , address ) } }
DialContext connects to the provided address on the provided network.
DialContext connects to the provided address on the provided network .